removed unused crypto functions

This commit is contained in:
Danny Coates 2018-09-04 10:41:45 -07:00
parent 00550872d7
commit 976fd61f23
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 1 additions and 53 deletions

View file

@ -12,19 +12,6 @@ describe('Keychain', function() {
});
});
describe('encrypt / decrypt file', function() {
it('can decrypt text it encrypts', async function() {
const enc = new TextEncoder();
const dec = new TextDecoder();
const text = 'hello world!';
const k = new Keychain();
const ciphertext = await k.encryptFile(enc.encode(text));
assert.notEqual(dec.decode(ciphertext), text);
const plaintext = await k.decryptFile(ciphertext);
assert.equal(dec.decode(plaintext), text);
});
});
describe('encrypt / decrypt metadata', function() {
it('can decrypt metadata it encrypts', async function() {
const k = new Keychain();