Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AzriDelta authored Nov 8, 2018
1 parent 359c1c6 commit 954ba6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ npm install aes-everywhere

Usage:
```js
import AES256 from 'aes-everywhere';
var AES256 = require('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 954ba6a

Please sign in to comment.