mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 23:27:26 +01:00
17 lines
No EOL
415 B
JavaScript
17 lines
No EOL
415 B
JavaScript
/* global describe, it */
|
|
let assert = require('assert')
|
|
let c = require('../../encryption')
|
|
|
|
describe('unit - encryption', function () {
|
|
|
|
it('encrypts and decrypts', function () {
|
|
let crypted = c.encrypt('data', 'password');
|
|
let decrypted = c.decrypt(crypted, 'password');
|
|
|
|
assert.ok(crypted);
|
|
assert.ok(decrypted);
|
|
assert.equal(decrypted, 'data');
|
|
assert.ok(crypted !== 'data');
|
|
})
|
|
|
|
}) |