https://github.com/ryleeharrison/iv-crypto
More of an example, not recommended for production use
https://github.com/ryleeharrison/iv-crypto
cryptography cypher
Last synced: about 1 month ago
JSON representation
More of an example, not recommended for production use
- Host: GitHub
- URL: https://github.com/ryleeharrison/iv-crypto
- Owner: RyLeeHarrison
- License: mit
- Created: 2018-08-07T22:23:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-07T23:03:39.000Z (over 6 years ago)
- Last Synced: 2025-01-31T12:17:29.354Z (3 months ago)
- Topics: cryptography, cypher
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iv-crypto
more of an example, not recommended for production use## General
```js
const iv = new IvCrypto({
algorithm: "aes128",
encoding: "base64",
key: "1234567891012345"
})const text = "Sit amet marshmallow muffin topping."
const enc = iv.encrypt(text)
console.log(`encrypted: ${enc}`)
console.log(`decrypted: ${iv.decrypt(enc)}`)
```## Command line

Supplying ``cli: true`` when creating class instance will enable an interactive command line.```js
const iv = new IvCrypto({
cli: true,
algorithm: "aes128",
encoding: "base64",
key: "1234567891012345"
})
```## Quick Start
Clone or download```sh
git clone https://github.com/RyLeeHarrison/iv-crypto
cd iv-crypto-master
```
example for command line
```sh
npm run cli
```
example for general usage
```sh
npm run general
```