12 lines
488 B
JavaScript
12 lines
488 B
JavaScript
|
var ciphers = require('./encrypter')
|
||
|
exports.createCipher = exports.Cipher = ciphers.createCipher
|
||
|
exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv
|
||
|
var deciphers = require('./decrypter')
|
||
|
exports.createDecipher = exports.Decipher = deciphers.createDecipher
|
||
|
exports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv
|
||
|
var modes = require('./modes')
|
||
|
function getCiphers () {
|
||
|
return Object.keys(modes)
|
||
|
}
|
||
|
exports.listCiphers = exports.getCiphers = getCiphers
|