Codeunit 1279 Cryptography Management Impl.

System Application, System.Security.Encryption

Source AL, 851 lines

src/System Application/App/Cryptography Management/src/CryptographyManagementImpl.Codeunit.allines 12 to 27 of 851, Copyright (c) Microsoft Corporation. MIT

codeunit 1279 "Cryptography Management Impl."{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        CryptographyManagement: Codeunit "Cryptography Management";        RijndaelProvider: DotNet "Cryptography.RijndaelManaged";        CryptoStreamMode: DotNet "Cryptography.CryptoStreamMode";        ExportEncryptionKeyFileDialogTxt: Label 'Choose the location where you want to save the encryption key.';        ExportEncryptionKeyConfirmQst: Label 'The encryption key file must be protected by a password and stored in a safe location.\\Do you want to save the encryption key?';        FileImportCaptionMsg: Label 'Select a key file to import.';        DefaultEncryptionKeyFileNameTxt: Label 'EncryptionKey.key';        KeyFileFilterTxt: Label 'Key File(*.key)|*.key';        ReencryptConfirmQst: Label 'The encryption is already enabled. Continuing will decrypt the encrypted data and encrypt it again with the new key.\\Do you want to continue?';

All 851 lines

Public procedures 61 in 29

Decrypt(EncryptedString: Text): Text17-29
ExportKey()17-29
ImportKey()17-29
ChangeKey()17-29
EnableEncryption(Silent: Boolean)17-29
DisableEncryption(Silent: Boolean)17-29

All 85 procedures in 17-29

Changes 10 in 28

List17181920212223242526272829
Procedures14478332410
GenerateHash(InputString: SecretText; HashAlgorithmType: Option MD5,SHA1,SHA256,SHA384,SHA512): SecretTextnew in 28
added
GenerateHashAsBase64String(InputString: SecretText; HashAlgorithmType: Option MD5,SHA1,SHA256,SHA384,SHA512): SecretTextnew in 28
added
GenerateHash(InputString: SecretText; Key: SecretText; HashAlgorithmType: Option HMACMD5,HMACSHA1,HMACSHA256,HMACSHA384,HMACSHA512): SecretTextnew in 28
added
GenerateHashAsBase64String(InputString: SecretText; Key: SecretText; HashAlgorithmType: Option HMACMD5,HMACSHA1,HMACSHA256,HMACSHA384,HMACSHA512): SecretTextnew in 28
added
GenerateBase64KeyedHashAsBase64String(InputString: SecretText; Key: SecretText; HashAlgorithmType: Option HMACMD5,HMACSHA1,HMACSHA256,HMACSHA384,HMACSHA512): SecretTextnew in 28
added
GenerateBase64KeyedHash(InputString: SecretText; Key: SecretText; HashAlgorithmType: Option HMACMD5,HMACSHA1,HMACSHA256,HMACSHA384,HMACSHA512): SecretTextnew in 28
added

All 73 changes in 17-29