Skip to content

parsaaes/aes.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

aes.js

This is an example of how to use Web Crypto API to encrypt/decrypt using AES algorithm.

The encrypt function takes a plain text and a passphrase and returns a base64 encoded cipher text encrypted with AES-GCM. The passphrase turns to a sha256 hash to be used as the key of encryption. You may want to use PBKDF2 instead.

The decrypt function takes a base64 encoded cipher text and a passphrase and returns the plain text decrypted by AES-GCM.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published