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_private_decrypt(3) - redhat
rsa_public_encrypt(3) - opendarwin
rsa_public_encrypt(3) - osx
openssl_sign(3) - php
wincache_ucache_inc(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!