The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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 DES

  • PBEWithMD5AndDES : Password-Based Encryption with MD5 and DES

  • PBEWithSHA1AndDES : 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 bit

  • PBEWithHmacSHA1AndAES_192 : Password-Based Encryption with SHA-1 HMAC and AES 192 bit

  • PBEWithHmacSHA1AndAES_256 : Password-Based Encryption with SHA-1 HMAC and AES 256 bit

  • PBEWithHmacSHA224AndAES_128 : Password-Based Encryption with SHA-224 HMAC and AES 128 bit

  • PBEWithHmacSHA224AndAES_192 : Password-Based Encryption with SHA-224 HMAC and AES 192 bit

  • PBEWithHmacSHA224AndAES_256 : Password-Based Encryption with SHA-224 HMAC and AES 256 bit

  • PBEWithHmacSHA256AndAES_128 : Password-Based Encryption with SHA-256 HMAC and AES 128 bit

  • PBEWithHmacSHA256AndAES_192 : Password-Based Encryption with SHA-256 HMAC and AES 192 bit

  • PBEWithHmacSHA256AndAES_256 : Password-Based Encryption with SHA-256 HMAC and AES 256 bit

  • PBEWithHmacSHA384AndAES_128 : Password-Based Encryption with SHA-384 HMAC and AES 128 bit

  • PBEWithHmacSHA384AndAES_192 : Password-Based Encryption with SHA-384 HMAC and AES 192 bit

  • PBEWithHmacSHA384AndAES_256 : Password-Based Encryption with SHA-384 HMAC and AES 256 bit

  • PBEWithHmacSHA512AndAES_128 : Password-Based Encryption with SHA-512 HMAC and AES 128 bit

  • PBEWithHmacSHA512AndAES_192 : Password-Based Encryption with SHA-512 HMAC and AES 192 bit

  • PBEWithHmacSHA512AndAES_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.