SSHAの取得
SSHA(Salted SHA)はCrypt::SaltedHashモジュールを利用すると簡単に取得できます。
use strict; use warnings; use Crypt::SaltedHash; my $secret = '12345'; my $shash = Crypt::SaltedHash->new(algorithm => 'SHA-1'); $shash->add($secret); my $salted = $shash->generate; print $salted, "\n";
関連項目
・MD5の取得・MD5から元の文字列の取得
・SHA-1の取得
・SHA-2の取得