browser.js 500 B

12345678910111213
  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