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

Lemonldap::NG::Common::Util::Crypto - Crypto utilities for LemonLDAP::NG

Authors

       LemonLDAP::NG team <http://lemonldap-ng.org/team>

Bug Report

       Use        OW2        system       to       report       bug       or       ask       for       features:
       <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>

Description

       This package contains various cryptography-related functions

Download

       Lemonldap::NG is available at <https://lemonldap-ng.org/download>

Methods

genCertKey($key_len,$password,$cn)

       This method generates a RSA private key and a self-signed certificate, and returns a hashref of

       public: certificate in PEM format, subject is built from given $cn
       private: private key in PEM format, optionnaly encrypted with supplied password
       hash: unique identifier for the key

       genEcKey($curve_name)

       This method generates an ECDSA key pair and returns a hashref of

       public: public key in PEM format
       private: private key in PEM format
       hash: unique identifier for the key

       genRsaKey($key_len,$password)

       This method generates a RSA key pair and returns a hashref of

       public: public key in PEM format
       private: private key in PEM format, optionnaly encrypted with supplied password
       hash: unique identifier for the key

Name

       Lemonldap::NG::Common::Util::Crypto - Crypto utilities for LemonLDAP::NG

See Also