KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Encrypt/Decrypt blob algorithm
PRODUCT: 4D | VERSION: 15.2 | PLATFORM: Mac & Win
Published On: April 20, 2016

For the commands ENCRYPT BLOB and DECRYPT BLOB, 4D uses these OpenSSL apis to encrypt & decrypt the blobs:

- RSA_private_encrypt() to encrypt
- RSA_private_decrypt() to decrypt
- PEM_read_bio_RSAPublicKey() to read the public key from blob
- PEM_read_bio_RSAPrivateKey() to read the private key from blob

With "RSA_PKCS1_PADDING" as padding mode for encrypt/decrypt.