GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - aykxt/crypto: ๐Ÿ” Fast crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2

BranchesTags
Open more actions menu

Latest commit

 

History

65 Commits
65 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
benchmarks
benchmarks
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
aes.ts
aes.ts
 
 
block-modes.ts
block-modes.ts
 
 
blowfish.ts
blowfish.ts
 
 
cast5.ts
cast5.ts
 
 
cliff.toml
cliff.toml
 
 
deno.json
deno.json
 
 
des.ts
des.ts
 
 
hkdf.ts
hkdf.ts
 
 
hmac.ts
hmac.ts
 
 
pbkdf2.ts
pbkdf2.ts
 
 
tdes.ts
tdes.ts
 
 

Repository files navigation

๐Ÿ” Deno Crypto

A collection of useful cryptographic algorithms written in Typescript.


๐Ÿงช This project is still in an early stage of development. Expect breaking changes.


โœ” Supported algorithms

Block ciphers

  • AES (Rijndael)
  • Blowfish
  • CAST5 (CAST-128)
  • DES
  • 3DES
  • ECB, CBC, CFB, OFB, CTR and IGE block modes

Message Authentication Code algorithms (MACs)

  • HMAC

Key Derivation Functions (KDFs)

  • HKDF
  • PBKDF2

๐Ÿ“ Examples

AES-128-CBC

import { Aes } from "https://deno.land/x/crypto/aes.ts";
import { Cbc, Padding } from "https://deno.land/x/crypto/block-modes.ts";

const te = new TextEncoder();

const key = te.encode("SuperDuperSecret");
const data = te.encode("DataToBeEncrypted");
const iv = new Uint8Array(16);

// Ciphers have an internal state, you should therefore create
// separate ciphers for encryption and decryption
const cipher = new Cbc(Aes, key, iv, Padding.PKCS7);
const decipher = new Cbc(Aes, key, iv, Padding.PKCS7);

const encrypted = cipher.encrypt(data);
const decrypted = decipher.decrypt(encrypted);

๐Ÿ”” Disclaimer

This repository has not yet received any formal cryptographic and security reviews. USE AT YOUR OWN RISK

About

๐Ÿ” Fast crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2

deno.land/x/crypto

Topics

3desaesblowfishcast5cbccfbcipherscryptoctrdenodesecbhkdfhmacofbpbkdf2typescript

Resources

Readme
MIT license
Activity

Stars

52 stars

Watchers

2 watching

Forks

5 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.