Query: openssl_public_encrypt
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
OPENSSL_PUBLIC_ENCRYPT(3) 1 OPENSSL_PUBLIC_ENCRYPT(3) openssl_public_encrypt - Encrypts data with public keySYNOPSISbool openssl_public_encrypt (string $data, string &$crypted, mixed $key, [int $padding = OPENSSL_PKCS1_PADDING])DESCRIPTIONopenssl_public_encrypt(3) encrypts $data with public $key and stores the result into $crypted. Encrypted data can be decrypted via openssl_private_decrypt(3). This function can be used e.g. to encrypt message which can be then read only by owner of the private key. It can be also used to store secure data in database.PARAMETERSo $data - o $crypted - This will hold the result of the encryption. o $key - The public key. o $padding -$padding can be one of OPENSSL_PKCS1_PADDING, OPENSSL_SSLV23_PADDING, OPENSSL_PKCS1_OAEP_PADDING, OPENSSL_NO_PADDING.RETURN VALUESReturns TRUE on success or FALSE on failure.SEE ALSOopenssl_private_encrypt(3), openssl_private_decrypt(3). PHP Documentation Group OPENSSL_PUBLIC_ENCRYPT(3)
Related Man Pages |
---|
rsa_private_decrypt(3) - redhat |
rsa_private_decrypt(3) - centos |
rsa_public_encrypt(3) - osx |
rsa_public_encrypt(3ssl) - suse |
openssl_public_encrypt(3) - php |
Similar Topics in the Unix Linux Community |
---|
extracting data and store in database |
Help with complex merg of files with common field |
SSL Public key/Private question |
ping from public IP |
Dollar symbol in Shell Script Variable |