mirror of
https://github.com/JDM170/model_coder
synced 2025-12-10 05:57:19 +07:00
XaskeL's encoder in JavaScript
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
3
index.js
3
index.js
@@ -53,7 +53,8 @@ getDirectories(argv.res, (err, res) => {
|
||||
const newFilePath = file + 'c';
|
||||
|
||||
// Encoding first $encodeSize bytes from file
|
||||
const key = crypto.createHash('sha256').update(argv.pass).digest('hex').toUpperCase();
|
||||
// const key = crypto.createHash('sha256').update(argv.pass).digest('hex').toUpperCase();
|
||||
const key = crypto.createHash('md5').update(argv.pass).digest('hex').substring(0, 16);
|
||||
const data = fs.readFileSync(file);
|
||||
let array = [];
|
||||
for (let i = 0; i < encodeSize; i++)
|
||||
|
||||
Reference in New Issue
Block a user