use Digest::SHA qw( sha256_hex ); my $email_SHA256 = sha256_hex( $email );