UNPKG

517 BJavaScriptView Raw
1module.exports = function (crypto, exports) {
2 exports = exports || {};
3 var ciphers = require('./encrypter')(crypto);
4 exports.createCipher = ciphers.createCipher;
5 exports.createCipheriv = ciphers.createCipheriv;
6 var deciphers = require('./decrypter')(crypto);
7 exports.createDecipher = deciphers.createDecipher;
8 exports.createDecipheriv = deciphers.createDecipheriv;
9 var modes = require('./modes');
10 function listCiphers () {
11 return Object.keys(modes);
12 }
13 exports.listCiphers = listCiphers;
14};
15