php man page for openssl_public_encrypt

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 key

SYNOPSIS
bool openssl_public_encrypt (string $data, string &$crypted, mixed $key, [int $padding = OPENSSL_PKCS1_PADDING])
DESCRIPTION
openssl_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.
PARAMETERS
o $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 VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
openssl_private_encrypt(3), openssl_private_decrypt(3). PHP Documentation Group OPENSSL_PUBLIC_ENCRYPT(3)
Related Man Pages
rsa_public_encrypt(3ssl) - linux
rsa_private_decrypt(3) - redhat
rsa_private_decrypt(3) - centos
memcached(3) - php
openssl_public_encrypt(3) - php
Similar Topics in the Unix Linux Community
Help with complex merg of files with common field
Error while doing key based authentication
Parse key-value pair into separate rows
Concat data
Private and public key encryption