Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ codeunit 1266 "Cryptography Management"
/// </summary>
/// <param name="InputString">The value to encrypt.</param>
/// <returns>Encrypted value.</returns>
[NonDebuggable]
procedure EncryptText(InputString: Text[215]): Text
begin
exit(CryptographyManagementImpl.Encrypt(InputString));
Expand All @@ -35,6 +36,7 @@ codeunit 1266 "Cryptography Management"
/// </summary>
/// <param name="EncryptedString">The value to decrypt.</param>
/// <returns>Plain text.</returns>
[NonDebuggable]
procedure Decrypt(EncryptedString: Text): Text
begin
exit(CryptographyManagementImpl.Decrypt(EncryptedString));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ codeunit 1279 "Cryptography Management Impl."
EncryptionCheckFailErr: Label 'Encryption is either not enabled or the encryption key cannot be found.';
EncryptionIsNotActivatedQst: Label 'Data encryption is not activated. It is recommended that you encrypt data. \Do you want to open the Data Encryption Management window?';

[NonDebuggable]
procedure Encrypt(InputString: Text[215]): Text
begin
AssertEncryptionPossible();
Expand All @@ -39,6 +40,7 @@ codeunit 1279 "Cryptography Management Impl."
exit(System.Encrypt(InputString));
end;

[NonDebuggable]
procedure Decrypt(EncryptedString: Text): Text
begin
AssertEncryptionPossible();
Expand Down
Loading