DECRYPT BLOB

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.7


DECRYPT BLOB (toDecrypt; sendPubKey{; recipPrivKey})

ParameterTypeDescription
toDecryptBLOBData to decrypt
Decrypted data
sendPubKeyBLOBSender's public key
recipPrivKeyBLOBRecipient's private key

Description

The DECRYPT BLOB command decrypts the content of the BLOB toDecrypt using the sender's public key sendPubKey and, optionally, the recipient's private key recipPrivKey.

The BLOB containing the sender's public key is passed in the sendPubKey parameter. This key has been generated by the sender using the GENERATE ENCRYPTION KEYPAIR command and it has to be sent to the recipient.

The BLOB containing the recipient's private key can be passed in the optional parameter recipPrivKey. In this case, the recipient has to generate a pair of encryption keys with the GENERATE ENCRYPTION KEYPAIR command and has to send his/her public key to the sender. The keypair-based encryption system guarantees that the message has been encrypted by the sender only and it can be decrypted by the recipient only. For more information about the keypair-based encryption system, refer to the routine ENCRYPT BLOB.

The command DECRYPT BLOB offers a checksum functionality in order to avoid any BLOB content modification (deliberate or not). If the encrypted BLOB is damaged or modified, the command will do nothing and an error will be returned.

Example

Refer to the examples given for the ENCRYPT BLOB command.

See Also

ENCRYPT BLOB, GENERATE ENCRYPTION KEYPAIR.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next