utilities
encrypt
Encrypt a plaintext using AES-GCM
algorithm.
import { encrypt } from 'darkflare'
const hash = await encrypt(message, secret)
decrypt
Decrypt a ciphertext using AES-GCM
algorithm.
import { decrypt } from 'darkflare'
const message = await decrypt(hash, secret)