Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/lib/encryption.ts

The best unofficial library of utilities for Deno applications
Go to Latest
import * as dtils from "https://deno.land/x/dtils@1.6.1/lib/encryption.ts";

Functions

Symmetricly decrypts bytes using key

Symmetricly encrypts bytes using key

Generates a key pair for asymmetric encryptions using the RSA algorithm

Generates an encryption key for symmetric encryptions using the AES algorithm

Generates an asymmetric key pair for signing or encryption purposes

Generates a key pair for asymmetric signings using the EC algorithm

Hashes a password into a symmetric encryption key for encryptions using the AES algorithm

Creates a digital signature using a key pair

Verifies that signature is from the private key corresponding to publicKey