Why are you shelling out and running a command line when you can just use the module within your code?
#!/usr/bin/perl use strict; use warnings; use Digest::SHA qw(sha256_hex); my $email = 'test@example.com'; my $email_sha256 = sha256_hex( $email ); print "$email_sha256\n";
In reply to Re^6: Perl SHA256
by marto
in thread Perl SHA256
by BOK_NEPA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |