- Notifications
You must be signed in to change notification settings - Fork5
🔐 Fast crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2
License
NotificationsYou must be signed in to change notification settings
aykxt/crypto
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A collection of useful cryptographic algorithms written in Typescript.
🧪This project is still in an early stage of development. Expect breakingchanges.
Message Authentication Code algorithms (MACs)
Key Derivation Functions (KDFs)
import{Aes}from"https://deno.land/x/crypto/aes.ts";import{Cbc,Padding}from"https://deno.land/x/crypto/block-modes.ts";constte=newTextEncoder();constkey=te.encode("SuperDuperSecret");constdata=te.encode("DataToBeEncrypted");constiv=newUint8Array(16);// Ciphers have an internal state, you should therefore create// separate ciphers for encryption and decryptionconstcipher=newCbc(Aes,key,iv,Padding.PKCS7);constdecipher=newCbc(Aes,key,iv,Padding.PKCS7);constencrypted=cipher.encrypt(data);constdecrypted=decipher.decrypt(encrypted);
This repository has not yet received any formal cryptographic and securityreviews.USE AT YOUR OWN RISK
About
🔐 Fast crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.