@orangecheck/vault-core / encryptFields
Function: encryptFields()
function encryptFields(fields: VaultEntryFields, key: Uint8Array): {
ciphertext: string;
nonce: string;
};
Defined in: vault-core/src/crypto.ts:177
Encrypt an entry's inner fields under the vault key.
Parameters
| Parameter | Type |
|---|---|
fields | VaultEntryFields |
key | Uint8Array |
Returns
{
ciphertext: string;
nonce: string;
}
| Name | Type | Defined in |
|---|---|---|
ciphertext | string | vault-core/src/crypto.ts:180 |
nonce | string | vault-core/src/crypto.ts:180 |