Function: useDecrypt() ​

Source: 1.1.0 · a1d5eeca2f43

ts
function useDecrypt(): object;

Defined in: packages/valaxy/client/composables/decrypt.ts:45

Decrypt ciphertext produced by encryptContent (valaxy/node).

ciphertext must be base64. Earlier versions passed a binary string (one char per byte), which no longer decrypts.

Returns ​

object

decrypt ​

ts
decrypt: (password, ciphertext) => Promise<string | undefined>;

Parameters ​

password ​

string

ciphertext ​

string

Returns ​

Promise<string | undefined>