Crypt::RNCryptor - Perl implementation of RNCryptor
use Crypt::RNCryptor; # generate password-based encryptor $cryptor = Crypt::RNCryptor->new( password => 'secret password', ); # generate key-based encryptor $cryptor = Crypt::RNCryptor->new( encryption_key => '', hmac_key => '', ); # encrypt $ciphertext = $cryptor->encrypt('plaintext'); # decrypt $plaintext = $cryptor->decrypt($ciphertext);
Crypt::RNCryptor is a Perl implementation of RNCryptor, which is one of data format for AES-256 (CBC mode) encryption.
Crypt::RNCryptor class is the base of Crypt::RNCryptor::V* class and declare some abstract methods.
Create a cryptor instance.
%opts = ( # RNCryptor version. Currently support only version 3) version => $Crypt::RNCryptor::DefaultRNCryptorVersion, # See Crypt::RNCryptor::V* %version_dependent_opts );
Encrypt plaintext with options.
Decrypt ciphertext with options.
Default RNCryptor version.
List of supporting RNCryptor versions.
Copyright (C) Shintaro Seki.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Shintaro Seki <s2pch.luck@gmail.com>
To install Crypt::RNCryptor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::RNCryptor
CPAN shell
perl -MCPAN -e shell install Crypt::RNCryptor
For more information on module installation, please visit the detailed CPAN module installation guide.