openssl_private_encrypt(3) php man page | unix.com

Man Page: openssl_private_encrypt

Operating Environment: php

Section: 3

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_private_decrypt(3) - redhat
rsa_public_encrypt(3) - redhat
rsa_private_decrypt(3) - centos
openssl_public_encrypt(3) - php
wincache_ucache_dec(3) - php
Similar Topics in the Unix Linux Community
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update