[problem]
You want to generate a SHA digest for a given string.
[/problem]
[solution]
Perl has great encryption and digesting algorithms.
In the example tab we use the Digest Perl module.
[/solution]
[example]
perl -M'Digest::SHA1 qw(sha1_hex)'
-e '$dig=sha1_hex("my big test"); print "$dign";'
419e6139a21f51a3f2ea1a783cfe536a0dada873
[/example]
[reference]
[tags]Perl SHA Digest, Perl, SHA, Encryption, Perl Coding School[/tags]
[/reference]
If you have found my website useful, please consider buying me a coffee below 😉