Skip to main content
Module

x/easysecurity/mod.ts>Crypter#decryptFromHex

Basic security API for Typescript that optimizes for easy use
Go to Latest
method Crypter.prototype.decryptFromHex
import { Crypter } from "https://deno.land/x/easysecurity@0.1.4/mod.ts";

decrypt a hex-encoded encryption output and return the original clear text

Parameters

hexEncrypted: string
  • the output of a previous call to encryptToHex

Returns

Promise<string>
  • the decrypted clear text