NAME
Crypt::PBE - Perl extension for PKCS #5 Password-Based Encryption Algorithms
SYNOPSIS
use Crypt::PBE qw(:jce);
my $pbe = PBEWithMD5AndDES('mypassword');
my $encrypted = $pbe->encrypt('secret'); # Base64 encrypted data
print $pbe->decrypt($encrypted);
DESCRIPTION
PBES and PBKDF
- Crypt::PBE::PBKDF1 - Password-Based Key Derivation Function 1
- Crypt::PBE::PBES1 - Password-Based Key Encryption Schema 1
- Crypt::PBE::PBKDF2 - Password-Based Key Derivation Function 2
- Crypt::PBE::PBES2 - Password-Based Key Encryption Schema 2
EXPORTED JCE-STYLE FUNCTIONS
PBES1 (Password-Based Encryption Schema 1)
PBEWithMD2AndDES
: Password-Based Encryption with MD2 and DESPBEWithMD5AndDES
: Password-Based Encryption with MD5 and DESPBEWithSHA1AndDES
: Password-Based Encryption with SHA1 and DES
PBES2 (Password-Based Encryption Schema 2)
PBEWithHmacSHA1AndAES_128
: Password-Based Encryption with SHA-1 HMAC and AES 128 bitPBEWithHmacSHA1AndAES_192
: Password-Based Encryption with SHA-1 HMAC and AES 192 bitPBEWithHmacSHA1AndAES_256
: Password-Based Encryption with SHA-1 HMAC and AES 256 bitPBEWithHmacSHA224AndAES_128
: Password-Based Encryption with SHA-224 HMAC and AES 128 bitPBEWithHmacSHA224AndAES_192
: Password-Based Encryption with SHA-224 HMAC and AES 192 bitPBEWithHmacSHA224AndAES_256
: Password-Based Encryption with SHA-224 HMAC and AES 256 bitPBEWithHmacSHA256AndAES_128
: Password-Based Encryption with SHA-256 HMAC and AES 128 bitPBEWithHmacSHA256AndAES_192
: Password-Based Encryption with SHA-256 HMAC and AES 192 bitPBEWithHmacSHA256AndAES_256
: Password-Based Encryption with SHA-256 HMAC and AES 256 bitPBEWithHmacSHA384AndAES_128
: Password-Based Encryption with SHA-384 HMAC and AES 128 bitPBEWithHmacSHA384AndAES_192
: Password-Based Encryption with SHA-384 HMAC and AES 192 bitPBEWithHmacSHA384AndAES_256
: Password-Based Encryption with SHA-384 HMAC and AES 256 bitPBEWithHmacSHA512AndAES_128
: Password-Based Encryption with SHA-512 HMAC and AES 128 bitPBEWithHmacSHA512AndAES_192
: Password-Based Encryption with SHA-512 HMAC and AES 192 bitPBEWithHmacSHA512AndAES_256
: Password-Based Encryption with SHA-512 HMAC and AES 256 bit
SEE ALSO
- [RFC2898] PKCS #5: Password-Based Cryptography Specification Version 2.0 (https://tools.ietf.org/html/rfc2898)
- [RFC8018] PKCS #5: Password-Based Cryptography Specification Version 2.1 (https://tools.ietf.org/html/rfc8018)
- [RFC6070] PKCS #5: Password-Based Key Derivation Function 2 (PBKDF2) - Test Vectors (https://tools.ietf.org/html/rfc6070)
- [RFC2307] An Approach for Using LDAP as a Network Information Service (https://tools.ietf.org/html/rfc2307)
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at https://github.com/giterlizzi/perl-Crypt-PBE/issues. You will be notified automatically of any progress on your issue.
Source Code
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/giterlizzi/perl-Crypt-PBE
git clone https://github.com/giterlizzi/perl-Crypt-PBE.git
AUTHOR
Giuseppe Di Terlizzi <gdt@cpan.org>
LICENSE AND COPYRIGHT
This software is copyright (c) 2020-2023 by Giuseppe Di Terlizzi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.