wallet-core/node_modules/browserify-aes/browser.js

14 lines
500 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
var ciphers = require('./encrypter')
var deciphers = require('./decrypter')
2017-12-10 21:51:33 +01:00
var modes = require('./modes/list.json')
2017-05-03 15:35:00 +02:00
function getCiphers () {
return Object.keys(modes)
}
2017-12-10 21:51:33 +01:00
exports.createCipher = exports.Cipher = ciphers.createCipher
exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv
exports.createDecipher = exports.Decipher = deciphers.createDecipher
exports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv
2017-05-03 15:35:00 +02:00
exports.listCiphers = exports.getCiphers = getCiphers