uluru-crypto
v4.1.4
Published
a lightweight cryptographic library designed to be simple to use
Downloads
42
Maintainers
Readme
Uluru crypto - a self-containted universal cryptographic library designed with simplicity of usage in mind.
Uluru crypto in javascript
Uluru JS is written in typescript and compiled to javascript to be used in both nodeJS (see on npm) and the web, without any dependencies whatsoever. The uluru crypto implementation takes advantage of modern javascript features (e.g. typed arrays) for better performance.
Features:
- symmetric encryption with ChaCha20
- hashing, PBKDF and HMAC with Keccak800
- RSA (asymmetric encryption, signing, key generation) and diffie hellman key exchange
- character encodings (Utf8, Ascii, Base64, Hex)
- secure generation of random bytes
Quick start
Node:
$ npm install uluru-crypto
import { encrypt, decrypt, hash } from "uluru-crypto" //ES modules
const { encrypt, decrypt, hash } = require("uluru-crypto") //common js
let encrypted = encrypt("some sensitive data!", "secret password")
let decrypted = decrypt(encrypted, "secret password") //"some sensitive data!"
let checksum = hash("some string to hash") //"00d5c7aff4b3f0c...
Browser:
<script src="https://unpkg.com/uluru-crypto"></script>
<script>
//in browser use the ready Uluru object:
const { encrypt, decrypt, hash } = Uluru
</script>
For more, see the docs at the git wiki