logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Crypt::Format - Conversion utilities for encryption applications

Author

       Felipe Gasper (FELIPE)

Description

       Not much more to say! This module is for simple conversions that I got tired of writing out.

Name

       Crypt::Format - Conversion utilities for encryption applications

Repository

       https://github.com/FGasper/p5-Crypt-Format

Synopsis

           use Crypt::Format;

           my $der = Crypt::Format::pem2der($pem);
           my $pem = Crypt::Format::der2pem($der, 'CERTIFICATE REQUEST');

           my $good_pem = Crypt::Format::normalize_pem($weird_pem);

           # Split PEM chains such as application/pem-certificate-chain …
           my @pems = Crypt::Format::split_pem_chain($pem_chain);

           {
               #If, for whatever reason, you don’t like MIME::Base64,
               #then customize this. The module must have encode() and/or decode()
               #functions, depending on which of this module’s functions you use.
               #
               local $Crypt::Format::BASE64_MODULE = '..';

               Crypt::Format::...
           }

See Also