oceanencrypting
Version:
A simple security to your own objects
12 lines (11 loc) • 336 B
JavaScript
algorithm = ['aes-256-ctr','aes-192-ctr','camellia-128-cfb','camellia-256-cfb'];
privateKey = Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5);
module.exports.setKey = function(key){
privateKey = key;
};
module.exports.privateKey = () => {
return privateKey;
};
module.exports.algorithm = () => {
return algorithm;
};