Codeunit DESCryptoServiceProvider
Provides helper functions for the Data Encryption Standard (DES)
Properties
| Name | Value |
|---|---|
| Access | Public |
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
EncryptText
Encrypts text with DotNet Cryptography.DESCryptoServiceProvider
procedure EncryptText(DecryptedText: Text, Password: SecretText, Salt: Text): Text
Parameters
| Name | Type | Description |
|---|---|---|
| DecryptedText | Text |
Represents the text to encrypt |
| Password | SecretText |
Represents the password to be used to initialize a new instance of DotNet System.Security.Cryptography.Rfc2898DeriveBytes |
| Salt | Text |
Represents the salt to be used to initialize a new instance of System.Security.Cryptography.Rfc2898DeriveBytes |
Returns
| Type | Description |
|---|---|
| Text |
Returns the encrypted text |
DecryptText
Decrypts text with DotNet Cryptography.DESCryptoServiceProvider
procedure DecryptText(EncryptedText: Text, Password: SecretText, Salt: Text): Text
Parameters
| Name | Type | Description |
|---|---|---|
| EncryptedText | Text |
Represents the text to decrypt |
| Password | SecretText |
Represents the password to be used to initialize a new instance of DotNet System.Security.Cryptography.Rfc2898DeriveBytes |
| Salt | Text |
Represents the salt to be used to initialize a new instance of System.Security.Cryptography.Rfc2898DeriveBytes |
Returns
| Type | Description |
|---|---|
| Text |
Returns the decrypted text |
EncryptStream
Encrypts data in stream with DotNet Cryptography.DESCryptoServiceProvider
procedure EncryptStream(Password: SecretText, Salt: Text, InputInstream: InStream, var OutputOutstream: OutStream)
Parameters
| Name | Type | Description |
|---|---|---|
| Password | SecretText |
Represents the password to be used to initialize a new instance of Rfc2898DeriveBytes |
| Salt | Text |
Represents the salt to be used to initialize a new instance of System.Security.Cryptography.Rfc2898DeriveBytes |
| InputInstream | InStream |
Represents the input instream data to encrypt |
| OutputOutstream | OutStream |
Represents the output instream encrypted data |
DecryptStream
Decrypts data in stream with DotNet Cryptography.DESCryptoServiceProvider
procedure DecryptStream(Password: SecretText, Salt: Text, InputInstream: InStream, var OutputOutstream: OutStream)
Parameters
| Name | Type | Description |
|---|---|---|
| Password | SecretText |
Represents the password to be used to initialize a new instance of Rfc2898DeriveBytes |
| Salt | Text |
Represents the salt to be used to initialize a new instance of System.Security.Cryptography.Rfc2898DeriveBytes |
| InputInstream | InStream |
Represents the input instream data to decrypt |
| OutputOutstream | OutStream |
Represents the output instream decrypted data |