Interface IKdf
An interface to form key derivation functions (KDF) that are used to derive a valid cryptographic key from a user input passphrase (i.e., password).
Namespace: Libplanet.KeyStore.Kdfs
Assembly: Libplanet.dll
Syntax
public interface IKdf
Methods
| Improve this Doc View SourceDerive(String)
Derives a cryptographic key in passphrase.
Declaration
ImmutableArray<byte> Derive(string passphrase)
Parameters
| Type | Name | Description |
|---|---|---|
| String | passphrase | A user input passphrase. |
Returns
| Type | Description |
|---|---|
| ImmutableArray<Byte> | A derived cryptographic key. |
WriteJson(Utf8JsonWriter)
Dumps the KDF parameters as a JSON representation.
Declaration
string WriteJson(Utf8JsonWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | A JSON writer which has not begun object nor array. |
Returns
| Type | Description |
|---|---|
| String | A unique identifier of the KDF. This is going to be the
|