summaryrefslogtreecommitdiffstats
path: root/node_modules/browserify-aes/browser.js
blob: d47a5f69c9e27be17e030e9ed8e8ff8cd537be05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
var ciphers = require('./encrypter')
var deciphers = require('./decrypter')
var modes = require('./modes/list.json')

function getCiphers () {
  return Object.keys(modes)
}

exports.createCipher = exports.Cipher = ciphers.createCipher
exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv
exports.createDecipher = exports.Decipher = deciphers.createDecipher
exports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv
exports.listCiphers = exports.getCiphers = getCiphers