php man page for openssl_private_encrypt

Query: openssl_private_encrypt

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

OPENSSL_PRIVATE_ENCRYPT(3)						 1						OPENSSL_PRIVATE_ENCRYPT(3)

openssl_private_encrypt - Encrypts data with private key

SYNOPSIS
bool openssl_private_encrypt (string $data, string &$crypted, mixed $key, [int $padding = OPENSSL_PKCS1_PADDING])
DESCRIPTION
openssl_private_encrypt(3) encrypts $data with private $key and stores the result into $crypted. Encrypted data can be decrypted via openssl_public_decrypt(3). This function can be used e.g. to sign data (or its hash) to prove that it is not written by someone else.
PARAMETERS
o $data - o $crypted - o $key - o $padding -$padding can be one of OPENSSL_PKCS1_PADDING, OPENSSL_NO_PADDING.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
openssl_public_encrypt(3), openssl_public_decrypt(3). PHP Documentation Group OPENSSL_PRIVATE_ENCRYPT(3)
Related Man Pages
rsa_public_encrypt(3) - netbsd
rsa_private_decrypt(3) - osx
openssl_public_encrypt(3) - php
openssl_sign(3) - php
openssl_pkcs7_decrypt(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
Please Welcome Nicki Paul to the Moderator Team!