You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
500 B

4 years ago
  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