openssl_decrypt

(PHP 5 >= 5.3.0, PHP 7) Decrypts data string openssl_decrypt ( string $data, string $method, string $password [, int $options = 0 [, string $iv = "" ]] ) Takes a raw or base64 encoded string and decrypts it using a given method and key. Parameters: data The data. method The cipher method. password

openssl_csr_sign

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Sign a CSR with another certificate (or itself) and generate a certificate resource openssl_csr_sign ( mixed $csr, mixed $cacert, mixed $priv_key, int $days [, array $configargs [, int $serial = 0 ]] ) openssl_csr_sign() generates an x509 certificate resource from the given CSR. Note: You need to have a valid openssl.cnf installed for this function to operate correctly. See the notes unde

openssl_csr_new

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Generates a CSR mixed openssl_csr_new ( array $dn, resource &$privkey [, array $configargs [, array $extraattribs ]] ) openssl_csr_new() generates a new CSR (Certificate Signing Request) based on the information provided by dn, which represents the Distinguished Name to be used in the certificate. Note: You need to have a valid openssl.cnf installed for this function to operate correct

openssl_csr_get_subject

(PHP 5 >= 5.2.0, PHP 7) Returns the subject of a CERT array openssl_csr_get_subject ( mixed $csr [, bool $use_shortnames = true ] ) This function is currently not documented; only its argument list is available.

openssl_csr_get_public_key

(PHP 5 >= 5.2.0, PHP 7) Returns the public key of a CERT resource openssl_csr_get_public_key ( mixed $csr [, bool $use_shortnames = true ] ) This function is currently not documented; only its argument list is available.

openssl_csr_export

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Exports a CSR as a string bool openssl_csr_export ( resource $csr, string &$out [, bool $notext = true ] ) openssl_csr_export() takes the Certificate Signing Request represented by csr and stores it as ascii-armoured text into out, which is passed by reference. Parameters: csr openssl_csr_export() takes the Certificate Signing Reques

openssl_csr_export_to_file

(PHP 4 >= 4.2.0, PHP 5, PHP 7) Exports a CSR to a file bool openssl_csr_export_to_file ( resource $csr, string $outfilename [, bool $notext = true ] ) openssl_csr_export_to_file() takes the Certificate Signing Request represented by csr and saves it as ascii-armoured text into the file named by outfilename. Parameters: csr openssl_csr_export_to_file() takes the Certif

openssl_cipher_iv_length

(PHP 5 >= PHP 5.3.3, PHP 7) Gets the cipher iv length int openssl_cipher_iv_length ( string $method ) Gets the cipher initialization vector (iv) length. Parameters: method The cipher method, see openssl_get_cipher_methods() for a list of potential values. Returns: Returns the cipher length on success, or FALSE on failure.

mhash

(PHP 4, PHP 5, PHP 7) Computes hash string mhash ( int $hash, string $data [, string $key ] ) mhash() applies a hash function specified by hash to the data. Parameters: hash The hash ID. One of the MHASH_hashname constants. data The user input, as a string. key If specified, the function will return t

mhash_keygen_s2k

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Generates a key string mhash_keygen_s2k ( int $hash, string $password, string $salt, int $bytes ) Generates a key according to the given hash, using an user provided password. This is the Salted S2K algorithm as specified in the OpenPGP document (ยป RFC 2440). Keep in mind that user supplied passwords are not really suitable to be used as keys in cryptographic algorithms, since users norm