0.0.2 • Published 6 years ago
@lyo/crypt v0.0.2
@lyo/crypt
A browser-compatible version of crypt built automatically with Lyo.
Usage
In a browser
<script src="https://cdn.jsdelivr.net/npm/@lyo/crypt"></script>
<script>
crypt.rotl(foo, bar);
crypt.rotr(foo, bar);
crypt.endian(foo);
crypt.randomBytes(foo);
crypt.bytesToWords(foo);
crypt.wordsToBytes(foo);
crypt.bytesToHex(foo);
crypt.hexToBytes(foo);
crypt.bytesToBase64(foo);
crypt.base64ToBytes(foo);
</script>
In Node.js
# Install
npm i @lyo/crypt
const crypt = require('@lyo/crypt')
crypt.rotl(foo, bar);
crypt.rotr(foo, bar);
crypt.endian(foo);
crypt.randomBytes(foo);
crypt.bytesToWords(foo);
crypt.wordsToBytes(foo);
crypt.bytesToHex(foo);
crypt.hexToBytes(foo);
crypt.bytesToBase64(foo);
crypt.base64ToBytes(foo);
Disclaimer
This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.
Use at your own risk
0.0.2
6 years ago