Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mervick committed Jan 7, 2019
2 parents f738dcd + 12c088d commit 5de309e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ npm install aes-everywhere

Usage:
```js
import AES256 from 'aes-everywhere';
var AES256 = require('aes-everywhere');
// or
// import AES256 from 'aes-everywhere';

// encryption
console.log(AES256.encrypt('TEXT', 'PASSWORD'));
encrypted = AES256.encrypt('TEXT', 'PASSWORD')
console.log(encrypted);

// decryption
console.log(AES256.decrypt('ENCRYPTED', 'PASSWORD'));
console.log(AES256.decrypt(encrypted, 'PASSWORD'));

```

0 comments on commit 5de309e

Please sign in to comment.