ccr-aes-path
v2.0.2
Published
File Cache Mgr.
Downloads
12
Readme
CCR-AES-PATH
Install
npm install ccr-aes-path --save
Usage
var cache = require('ccr-file')('test_cache');
// aes: aes key or aesid obj
var aeskey = require('ccr-ase-path')(cache, aes, aesidOptions);
cache.file('userid').then(function(file) {
// mkdirp paths auto
console.log(file);
// print /tmp/node-ccr/test_cache/2018/0523/15929_0148/userid_1
var sid = aeskey(file, 'userid');
// print S1Agc3os25Nynh4uI2tl5ZNOlBN7yUU1PvF1RTUJ5WsGHzDoPE9RdgAZbKvvr7EP
console.log(aeskey(sid, 'userid'));
// print /tmp/node-ccr/test_cache/2018/0523/15929_0148/userid_1
});