RSA_ENCRYPT()
Pads data using OAEP or PKCS 1.5 and then encrypts it with an RSA public key
VARBINARY
RSA_ENCRYPT (input KEY public_key [LPARAM tag_string] [HASH <hash>] [PKCS_1_5]) <hash> ::= MD5 | SHA1 | SHA256 | SHA512
Parameter | Description |
---|---|
input |
Input data to encrypt |
public_key |
Public key to apply, PKCS#1 format |
tag_string |
An additional system-specific tag to identify which system encrypted the message;default is |
hash |
The hash used for OAEP padding;default is |
RSA_ENCRYPT
pads input using the OAEP or PKCS 1.5 padding scheme and then encrypts it using the specified RSA public key.This function is normally used to encrypt short symmetric keys which are then used in block ciphers to encrypt a message.
By default, OAEP padding is used.The PKCS_1_5
option will switch to the less secure PKCS 1.5 padding.
Warning
|
The |