Codeunit Rfc2898DeriveBytes
ID 1378
Namespace: System.Security.Encryption
Provides helper functions for the Advanced Encryption Standard.
Properties
| Name | Value |
|---|---|
| Access | Public |
| InherentEntitlements | X |
| InherentPermissions | X |
Methods
HashRfc2898DeriveBytes
Generates a base64 encoded hash from a string based on the provided hash algorithm.
procedure HashRfc2898DeriveBytes(InputString: Text, Salt: Text, NoOfBytes: Integer, HashAlgorithmType: Option): Text
Parameters
| Name | Type | Description |
|---|---|---|
| InputString | Text |
Represents the input to be hashed |
| Salt | Text |
The salt used to derive the key |
| NoOfBytes | Integer |
The number of pseudo-random key bytes to generate |
| HashAlgorithmType | Option |
Represents the HashAlgorithmType, which returns the encrypted hash in the desired algorithm type |
Returns
| Type | Description |
|---|---|
| Text |
Hash of input |