| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Encryption.EncryptContainerAES
Encrypts container value with AES engine in CFB mode.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Encryption | 2.9 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Deprecated
This function was deprecated. Use Encryption.Cipher instead.
MBS( "Encryption.EncryptContainerAES"; Key; Value { ; iv } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Key | The key you want to use. | "Hello" | |
| Value | The container value to use. | $inputData | |
| iv | The initial vector as a text with up to 16 bytes length. | "1234567890ABCDEF" | Optional |
Result
Returns error or encrypted container value.
Description
Encrypts container value with AES engine in CFB mode.Input must be a container value (picture, file, PDF, movie or whatever you have). The encrypted data is returned as container value without file name.
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.
Deprecated. Please move to Encryption.Cipher for new projects.
Examples
Encrypt and Decrypt:
Set Variable [ $key; Value: "Hello" ]
Set Variable [ $encryptedData; Value: MBS( "Encryption.EncryptContainerAES"; $key; $inputData ) ]
Set Variable [ $decryptedData; Value: MBS( "Encryption.DecryptContainerAES"; $key; $encryptedData ) ]
Set Variable [ $encryptedData; Value: MBS( "Encryption.EncryptContainerAES"; $key; $inputData ) ]
Set Variable [ $decryptedData; Value: MBS( "Encryption.DecryptContainerAES"; $key; $encryptedData ) ]
See also
Example Databases
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 24th February 2026
Encryption.EncryptBlowfish - Encryption.EncryptContainerBlowfish
MarkDown version: EncryptionEncryptContainerAES.md