Component: Encryption 
----------------------

Encrypt or Decrypt with AES or Blowfish

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [2.7](newinversion27.md "First functions introduced with version 2.7.") / [16.4](newinversion164.md "Newest functions in version 16.4.") | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [ECKey.CurveNameToID](ECKeyCurveNameToID.md)   Queries the name for the curve ID. | All   15.1 |
| [Encryption.Cipher](EncryptionCipher.md)   Encrypts or decrypts of a value. | All   4.1 |
| [Encryption.CipherNames](EncryptionCipherNames.md)   Queries list of all ciphers. | All   8.5 |
| [Encryption.DecryptAES](EncryptionDecryptAES.md)  **Deprecated**    Decrypts data with AES engine in CBC mode. | All   2.7 |
| [Encryption.DecryptBlowfish](EncryptionDecryptBlowfish.md)  **Deprecated**    Decrypts data with Blowfish engine in CFB64 mode. | All   2.7 |
| [Encryption.DecryptContainerAES](EncryptionDecryptContainerAES.md)  **Deprecated**    Decrypts container value with AES engine in CFB mode. | All   2.9 |
| [Encryption.DecryptContainerBlowfish](EncryptionDecryptContainerBlowfish.md)  **Deprecated**    Decrypts container value with Blowfish engine. | All   2.9 |
| [Encryption.DigestNames](EncryptionDigestNames.md)   Queries list of all digest algorithms. | All   8.5 |
| [Encryption.EncryptAES](EncryptionEncryptAES.md)  **Deprecated**    Encrypts data with with AES engine in CBC mode. | All   2.7 |
| [Encryption.EncryptBlowfish](EncryptionEncryptBlowfish.md)  **Deprecated**    Decrypts data with Blowfish engine in CFB64 mode. | All   2.7 |
| [Encryption.EncryptContainerAES](EncryptionEncryptContainerAES.md)  **Deprecated**    Encrypts container value with AES engine in CFB mode. | All   2.9 |
| [Encryption.EncryptContainerBlowfish](EncryptionEncryptContainerBlowfish.md)  **Deprecated**    Encrypts container value with Blowfish engine. | All   2.9 |
| [Encryption.GetGCMTag](EncryptionGetGCMTag.md)  **New in 16.4**    Queries the GCM authentication tag of the last encryption. | All   16.4 |
| [Encryption.ProviderNames](EncryptionProviderNames.md)   Queries list of providers. | All   15.3 |
| [Encryption.PubKeyDecrypt](EncryptionPubKeyDecrypt.md)  **New in 16.3**    Decrypts data with a private key. | All   16.3 |
| [Encryption.PubKeyEncrypt](EncryptionPubKeyEncrypt.md)  **New in 16.3**    Encrypts data with a public key. | All   16.3 |
| [Encryption.SetGCMTag](EncryptionSetGCMTag.md)  **New in 16.4**    Sets the GCM authentication tag of the next decryption. | All   16.4 |
| [RSA.DecryptPrivateKey](RSADecryptPrivateKey.md)   Decrypts a private key. | All   7.5 |
| [RSA.EncryptPrivateKey](RSAEncryptPrivateKey.md)   Encrypts a private key. | All   7.5 |
| [RSA.GeneratePrivateKey](RSAGeneratePrivateKey.md)   Creates a new private key. | All   6.2 |
| [RSA.GetPublicKey](RSAGetPublicKey.md)   Queries public key from private key. | All   6.2 |
| [RSA.PrivateDecrypt](RSAPrivateDecrypt.md)   Decrypts data using private key. | All   6.2 |
| [RSA.PrivateEncrypt](RSAPrivateEncrypt.md)   Encrypts data using private key. | All   6.2 |
| [RSA.PublicDecrypt](RSAPublicDecrypt.md)   Decrypts data using public key. | All   6.2 |
| [RSA.PublicEncrypt](RSAPublicEncrypt.md)   Encrypts data using public key. | All   6.2 |
| [RSA.Sign](RSASign.md)   Signs data with RSA digital signature. | All   6.2 |
| [RSA.SignPSS](RSASignPSS.md)   Signs data with RSA digital signature with PSS padding. | All   15.5 |
| [RSA.Verify](RSAVerify.md)   Verifies RSA digital signature. | All   6.2 |
| [RSA.VerifyPSS](RSAVerifyPSS.md)   Verifies RSA digital signature with PSS padding. | All   15.5 |

29 functions shown.

These functions require a license (66%).

### Release notes

- **Version 16.4**
    - Added [Encryption.SetGCMTag](https://www.mbsplugins.eu/EncryptionSetGCMTag.shtml) and [Encryption.GetGCMTag](https://www.mbsplugins.eu/EncryptionGetGCMTag.shtml) functions.
- **Version 15.3**
    - Added [Encryption.ProviderNames](https://www.mbsplugins.eu/EncryptionProviderNames.shtml) function.
- **Version 13.3**
    - Fixed an issue with variable length keys in [Encryption.Cipher](https://www.mbsplugins.eu/EncryptionCipher.shtml) function.
- **Version 10.3**
    - Added Base64URL as output option for [RSA.Sign](https://www.mbsplugins.eu/RSASign.shtml), [CURL.ReceiveData](https://www.mbsplugins.eu/CURLReceiveData.shtml), [Files.ReadFile](https://www.mbsplugins.eu/FilesReadFile.shtml), [Hash.DigestFile](https://www.mbsplugins.eu/HashDigestFile.shtml), [Hash.Digest](https://www.mbsplugins.eu/HashDigest.shtml), [Encryption.Cipher](https://www.mbsplugins.eu/EncryptionCipher.shtml) and for other functions as text encoding parameter.
    - Added option to [Hash.PBKDF2.HMAC](https://www.mbsplugins.eu/HashPBKDF2HMAC.shtml) to pass digest names returned by [Encryption.DigestNames](https://www.mbsplugins.eu/EncryptionDigestNames.shtml) function, so SHA3 works.
- **Version 10.0**
    - Fixed a bug with [Encryption.Cipher](https://www.mbsplugins.eu/EncryptionCipher.shtml) function when key contained char(10).
- **Version 9.5**
    - Changed [Encryption.Cipher](http://www.mbsplugins.eu/EncryptionCipher.shtml) to not report no error as error.
- **Version 9.4**
    - Added error check to [Encryption.Cipher](http://www.mbsplugins.eu/EncryptionCipher.shtml) to report if de/encryption fails instead of silently return no or garbage data.
- **Version 8.5**
    - Added [Encryption.CipherNames](http://www.mbsplugins.eu/EncryptionCipherNames.shtml) and [Encryption.DigestNames](http://www.mbsplugins.eu/EncryptionDigestNames.shtml) functions.
    - Fixed problem with [Encryption.EncryptAES](http://www.mbsplugins.eu/EncryptionEncryptAES.shtml) function if byte size is not a multiply of 16.
- **Version 7.3**
    - Added new mode to [Encryption.Cipher](http://www.mbsplugins.eu/EncryptionCipher.shtml) with type "auto" for returning container data and detect type based on a given filename.
    - Fixed bug with [Encryption.Cipher](http://www.mbsplugins.eu/EncryptionCipher.shtml) to better handle longer keys (e.g. blowfish with up to 64 bytes) and invalid key lengths.

### Blog Entries

- [MBS FileMaker Plugin 16.3](https://www.mbsplugins.de/archive/2026-08-04/MBS_FileMaker_Plugin_163/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 13.3 für Claris FileMaker](https://www.mbsplugins.de/archive/2023-07-18/Neues_MBS_Plugin_133_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.3 for Claris FileMaker](https://www.mbsplugins.de/archive/2023-07-18/MBS_Plugin_133_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, June 2021 News](https://www.mbsplugins.de/archive/2021-06-01/MBS_FileMaker_Plugin_June_2021/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 10.3 - More than 6200 Functions In One Plugin](https://www.mbsplugins.de/archive/2020-07-21/MBS_FileMaker_Plugin_103_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.2 for OS X/Windows](https://www.mbsplugins.de/archive/2016-05-24/MBS_FileMaker_Plugin_62_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 4.1 for OS X/Windows - More than 2400 Functions In One Plugin](https://www.mbsplugins.de/archive/2014-03-18/MBS_FileMaker_Plugin_41_for_OS/monkeybreadsoftware_blog_filemaker)

### Example Databases

- [Encryption and Hash/AES with PHP/AES with PHP](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/AES%20with%20PHP/AES%20with%20PHP.shtml#1ScriptAnchor_)
- [Encryption and Hash/AES](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/AES.shtml#1ScriptAnchor_)
- [Encryption and Hash/Blowfish](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/Blowfish.shtml#1ScriptAnchor_)
- [Encryption and Hash/Encrypt Containers](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/Encrypt%20Containers.shtml#1ScriptAnchor_)
- [Encryption and Hash/Encryption Cipher](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/Encryption%20Cipher.shtml#1ScriptAnchor_)
- [Utility functions/Generate and Verify License Key](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Generate%20and%20Verify%20License%20Key.shtml#1ScriptAnchor_)

[HTML Version](component_Encryption.shtml)