function decrypt
decrypt<Plain extends string = string>(encrypted: EnvKeyEncrypted<Plain>): Promise<Plain>

Decrypt a string value encrypted with encrypt() Expects format: enc:1:$base64iv:$base64ciphertext

Type Parameters

Plain extends string = string

Parameters

encrypted: EnvKeyEncrypted<Plain>

Return Type

Promise<Plain>

Usage

import { decrypt } from "docs/crypto.ts";