browser.js 500 B

1234567891011121314
  1. var ciphers = require('./encrypter')
  2. var deciphers = require('./decrypter')
  3. var modes = require('./modes/list.json')
  4. function getCiphers () {
  5. return Object.keys(modes)
  6. }
  7. exports.createCipher = exports.Cipher = ciphers.createCipher
  8. exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv
  9. exports.createDecipher = exports.Decipher = deciphers.createDecipher
  10. exports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv
  11. exports.listCiphers = exports.getCiphers = getCiphers