Interface ISecureDataService
Helper to work with secure / encrypted data.
[PublicApi]
public interface ISecureDataService : IHasLog, ICanDebug
- Inherited Members
Remarks
History
- Added in 2sxc 12.05
Methods
HashSha256(string)
Hash a value using SHA256, using a FIPS compliant provider.
string HashSha256(string value)
Parameters
value
stringvalue to hash,
null
will be treated as empty string
Returns
- string
the hash as a ???
Remarks
Added v17.08
HashSha512(string)
Hash a value using SHA512, using a FIPS compliant provider.
string HashSha512(string value)
Parameters
value
stringvalue to hash,
null
will be treated as empty string
Returns
- string
the hash as a ???
Remarks
Added v17.08
Parse(string)
Read an input value and return a secure data object. This will contain the readable value and additional information if it was encrypted or not, etc.
ISecureData<string> Parse(string value)
Parameters
value
string