Obsolete
/
dnsmanagerv1
Archived
3
0
Fork 0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
dnsmanagerv1/lib/encryption.pm

17 lines
287 B
Perl

package encryption;
use Crypt::Digest::SHA256 qw( sha256_hex ) ;
use Exporter 'import';
# what we want to export eventually
our @EXPORT_OK = qw/encrypt/;
# bundle of exports (tags)
our %EXPORT_TAGS = ( all => [qw/encrypt/] );
sub encrypt {
my ($x) = @_;
sha256_hex($x)
}
1;