Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 4.0   4.1   4.2   4.3   4.4   5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  


Decrypts container value with AES engine in CFB mode.

Component: Encryption
Version: 2.9
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "Encryption.DecryptContainerAES"; key; value { ; iv } )


Parameter Description Example value
key The key you want to use. "Hello"
value The container value to use. $inputData
iv Optional
The initial vector as a text with up to 16 bytes length.


Returns error or decrypted container value.


Decrypts container value with AES engine in CFB mode.
The function expects you to use the same key as encryption and a container value produced by the Encryption.EncryptContainerAES function. The function does not store the key, but once the data is decrypted it can decide if they make sense and return an error about a wrong key if data is looking strange.
Keys shorter than 128 bit, 192 bit or 256 bit length are padded with null bytes to right size. This means that only the first 32 characters are used at most.
The plugin has no idea to verify if the key is correct. You need to make sure that you check if result is correct, e.g. by using a hash to verify if result is the expected value.
Deprecated. Please move to Encryption.Cipher for new projects.


Encrypt and Decrypt:

set variable $key to "Hello"
set variable $encryptedData to MBS( "Encryption.EncryptContainerAES"; $key; $inputData )
set variable $decryptedData to MBS( "Encryption.DecryptContainerAES"; $key; $encryptedData )

See also

Encryption.DecryptBlowfish   -   Encryption.DecryptContainerBlowfish

Feedback: Report problem or ask question.

MBS REALbasic Plugins - Nachhilfe in Plaidt