Skip to main content
Module

x/easysecurity/mod.ts>Crypter#encryptToHex

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

encrypt a clear text and hex-encode the resulting encrypted value

Parameters

clearText: string
  • the string to encrypt

Returns

Promise<string>
  • the decrypted clear text