🐛 Update: Added support for the 'find' command in settings.local.json. Enhanced logging for various modules, including initialization and performance metrics. Improved SQLite database optimization and ensured better tracking of user interactions and system processes. 📚
This commit is contained in:
20
network-visualization/node_modules/apache-crypt/src/index.js
generated
vendored
Normal file
20
network-visualization/node_modules/apache-crypt/src/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
// Des module.
|
||||
const des = require("unix-crypt-td-js");
|
||||
|
||||
// Hash generation string.
|
||||
const itoa64 =
|
||||
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
|
||||
// Salt generation method.
|
||||
function getSalt() {
|
||||
return (
|
||||
itoa64[parseInt(Math.random() * 64)] + itoa64[parseInt(Math.random() * 64)]
|
||||
);
|
||||
}
|
||||
|
||||
// Exporting old style.
|
||||
module.exports = (password, salt) => {
|
||||
return salt ? des(password, salt) : des(password, getSalt());
|
||||
};
|
Reference in New Issue
Block a user