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