---
title: "Codeunit 1279 Cryptography Management Impl."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1279-cryptography-management-impl/
type: codeunit
id: 1279
name: "Cryptography Management Impl."
app: "System Application"
namespace: System.Security.Encryption
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1279-cryptography-management-impl/source/24/ https://jonas-paprotka.de/ref/codeunit/1279-cryptography-management-impl/source/25/ https://jonas-paprotka.de/ref/codeunit/1279-cryptography-management-impl/source/26/ https://jonas-paprotka.de/ref/codeunit/1279-cryptography-management-impl/source/27/ https://jonas-paprotka.de/ref/codeunit/1279-cryptography-management-impl/source/28/ https://jonas-paprotka.de/ref/codeunit/1279-cryptography-management-impl/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 1279 Cryptography Management Impl.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1279-cryptography-management-impl/

| | |
| --- | --- |
| App | System Application |
| Namespace | System.Security.Encryption |
| Versions | 17-28 |
| Source file | Cryptography Management/src/CryptographyManagementImpl.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Encrypt | (Text) | Text | public | 17-19 | - | - |
| Decrypt | (Text) | Text | public | 17-28 | - | - |
| ExportKey | () | - | public | 17-28 | - | - |
| ExportKeyAsStream | (var Codeunit Temp Blob, Text) | - | public | 17-23 | - | - |
| ImportKey | () | - | public | 17-28 | - | - |
| ChangeKey | () | - | public | 17-28 | - | - |
| EnableEncryption | (Boolean) | - | public | 17-28 | - | - |
| DisableEncryption | (Boolean) | - | public | 17-28 | - | - |
| IsEncryptionEnabled | () | Boolean | public | 17-28 | - | - |
| IsEncryptionPossible | () | Boolean | public | 17-28 | - | - |
| GetEncryptionIsNotActivatedQst | () | Text | public | 17-28 | - | - |
| GenerateHash | (Text, Option) | Text | public | 17-28 | - | - |
| GenerateHashAsBase64String | (Text, Option) | Text | public | 17-28 | - | - |
| GenerateHash | (Text, Text, Option) | Text | public | 17-23 | - | - |
| GenerateHashAsBase64String | (Text, Text, Option) | Text | public | 17-23 | - | - |
| GenerateBase64KeyedHashAsBase64String | (Text, Text, Option) | Text | public | 17-23 | - | - |
| GenerateHash | (InStream, Option) | Text | public | 17-28 | - | - |
| SignData | (Text, var Record Signature Key, Enum Hash Algorithm, OutStream) | - | public | 17-22 | - | - |
| SignData | (Text, InStream, Option, OutStream) | - | public | 17-22 | - | - |
| SignData | (InStream, var Record Signature Key, Enum Hash Algorithm, OutStream) | - | public | 17-22 | - | - |
| SignData | (InStream, InStream, Option, OutStream) | - | public | 17-22 | - | - |
| VerifyData | (Text, var Record Signature Key, Enum Hash Algorithm, InStream) | Boolean | public | 17-22 | - | - |
| VerifyData | (Text, Text, Option, InStream) | Boolean | public | 17-22 | - | - |
| VerifyData | (InStream, var Record Signature Key, Enum Hash Algorithm, InStream) | Boolean | public | 17-22 | - | - |
| VerifyData | (InStream, Text, Option, InStream) | Boolean | public | 17-22 | - | - |
| InitRijndaelProvider | () | - | public | 17-28 | - | - |
| InitRijndaelProvider | (Text) | - | public | 17-23 | - | - |
| InitRijndaelProvider | (Text, Integer) | - | public | 17-23 | - | - |
| InitRijndaelProvider | (Text, Integer, Text) | - | public | 17-23 | - | - |
| InitRijndaelProvider | (Text, Integer, Text, Text) | - | public | 17-23 | - | - |
| SetBlockSize | (Integer) | - | public | 17-28 | - | - |
| SetCipherMode | (Text) | - | public | 17-28 | - | - |
| SetPaddingMode | (Text) | - | public | 17-28 | - | - |
| SetEncryptionData | (Text, Text) | - | public | 17-23 | - | - |
| IsValidKeySize | (Integer) | Boolean | public | 17-28 | - | - |
| GetLegalKeySizeValues | (var Integer, var Integer, var Integer) | - | public | 17-28 | - | - |
| GetLegalBlockSizeValues | (var Integer, var Integer, var Integer) | - | public | 17-28 | - | - |
| GetEncryptionData | (var Text, var Text) | - | public | 17-28 | - | - |
| EncryptRijndael | (Text) | Text | public | 17-28 | - | - |
| DecryptRijndael | (Text) | Text | public | 17-23 | - | - |
| HashRfc2898DeriveBytes | (Text, Text, Integer, Option) | Text | public | 17-28 | - | - |
| GenerateBase64KeyedHash | (Text, Text, Option) | Text | public | 18-23 | - | - |
| SignData | (Text, Text, Enum Hash Algorithm, OutStream) | - | public | 19-23 | - | - |
| SignData | (InStream, Text, Enum Hash Algorithm, OutStream) | - | public | 19-23 | - | - |
| VerifyData | (Text, Text, Enum Hash Algorithm, InStream) | Boolean | public | 19-23 | - | - |
| VerifyData | (InStream, Text, Enum Hash Algorithm, InStream) | Boolean | public | 19-23 | - | - |
| Encrypt | (Text[215]) | Text | public | 20-28 | - | - |
| SignData | (Text, Codeunit Signature Key, Enum Hash Algorithm, OutStream) | - | public | 20-28 | - | - |
| SignData | (InStream, Codeunit Signature Key, Enum Hash Algorithm, OutStream) | - | public | 20-28 | - | - |
| VerifyData | (Text, Codeunit Signature Key, Enum Hash Algorithm, InStream) | Boolean | public | 21-28 | - | - |
| VerifyData | (InStream, Codeunit Signature Key, Enum Hash Algorithm, InStream) | Boolean | public | 21-28 | - | - |
| ExportKeyAsStream | (var Codeunit Temp Blob, SecretText) | - | public | 24-28 | - | - |
| GenerateHash | (Text, SecretText, Option) | Text | public | 24-28 | - | - |
| GenerateHashAsBase64String | (Text, SecretText, Option) | Text | public | 24-28 | - | - |
| GenerateBase64KeyedHashAsBase64String | (Text, SecretText, Option) | Text | public | 24-28 | - | - |
| GenerateBase64KeyedHash | (Text, SecretText, Option) | Text | public | 24-28 | - | - |
| SignData | (Text, SecretText, Enum Hash Algorithm, OutStream) | - | public | 24-28 | - | - |
| SignData | (InStream, SecretText, Enum Hash Algorithm, OutStream) | - | public | 24-28 | - | - |
| VerifyData | (Text, SecretText, Enum Hash Algorithm, InStream) | Boolean | public | 24-28 | - | - |
| VerifyData | (InStream, SecretText, Enum Hash Algorithm, InStream) | Boolean | public | 24-28 | - | - |
| InitRijndaelProvider | (SecretText) | - | public | 24-28 | - | - |
| InitRijndaelProvider | (SecretText, Integer) | - | public | 24-28 | - | - |
| InitRijndaelProvider | (SecretText, Integer, Text) | - | public | 24-28 | - | - |
| InitRijndaelProvider | (SecretText, Integer, Text, Text) | - | public | 24-28 | - | - |
| SetEncryptionData | (SecretText, Text) | - | public | 24-28 | - | - |
| GetEncryptionData | (var SecretText, var Text) | - | public | 24-28 | - | - |
| EncryptRijndaelSecret | (SecretText) | SecretText | public | 24-28 | - | - |
| DecryptRijndael | (SecretText) | Text | public | 24-28 | - | - |
| DecryptRijndaelSecret | (SecretText) | SecretText | public | 24-28 | - | - |
| SignData | (Text, SecretText, Enum Hash Algorithm, Enum RSA Signature Padding, OutStream) | - | public | 25-28 | - | - |
| SignData | (InStream, SecretText, Enum Hash Algorithm, Enum RSA Signature Padding, OutStream) | - | public | 25-28 | - | - |
| EncryptBinaryDataRijndael | (Text) | Text | public | 27-28 | - | - |
| EncryptBinaryDataRijndaelSecret | (SecretText) | SecretText | public | 27-28 | - | - |
| DecryptBinaryDataRijndael | (SecretText) | Text | public | 27-28 | - | - |
| DecryptBinaryDataRijndaelSecret | (SecretText) | SecretText | public | 27-28 | - | - |
| GenerateHash | (SecretText, Option) | SecretText | public | 28 | - | - |
| GenerateHashAsBase64String | (SecretText, Option) | SecretText | public | 28 | - | - |
| GenerateHash | (SecretText, SecretText, Option) | SecretText | public | 28 | - | - |
| GenerateHashAsBase64String | (SecretText, SecretText, Option) | SecretText | public | 28 | - | - |
| GenerateBase64KeyedHashAsBase64String | (SecretText, SecretText, Option) | SecretText | public | 28 | - | - |
| GenerateBase64KeyedHash | (SecretText, SecretText, Option) | SecretText | public | 28 | - | - |
| SignData | (SecretText, SecretText, Enum Hash Algorithm, OutStream) | - | public | 28 | - | - |
| SignData | (SecretText, Codeunit Signature Key, Enum Hash Algorithm, OutStream) | - | public | 28 | - | - |
| VerifyData | (SecretText, SecretText, Enum Hash Algorithm, InStream) | Boolean | public | 28 | - | - |
| VerifyData | (SecretText, Codeunit Signature Key, Enum Hash Algorithm, InStream) | Boolean | public | 28 | - | - |

## Source

Symbols: Microsoft.SystemApplication.symbols.63ca2fa4-4f03-4f2b-a480-172fef340d3f, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 24: https://github.com/microsoft/BCApps, MIT, releases/24.x at fe14d3e6db00d28df3a69c7bba830813d70794e2.
AL source 25: https://github.com/microsoft/BCApps, MIT, releases/25.x at 68d52c129129c83b2e396a473aaa5b2ce61d2eed.
AL source 26: https://github.com/microsoft/BCApps, MIT, releases/26.x at 78c4acf0d64a8eee157ea80164fa8fc2acffc9eb.
AL source 27: https://github.com/microsoft/BCApps, MIT, releases/27.x at 1749020b4c9445a43e4f7f540e89b7fa76ec25fd.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 740f59156b249f8ed7cba2e28423f03ae7b07233.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
