07-27-2022, 05:12 AM
I have a hash algorithm:
But it just uses first 6 bytes after base64.
How can I solve it?
Code:
const hash = (password) => {
const sha = crypto.createHash('sha256');
sha.update(password+SALT);
return sha.digest('base64').substr(0, 6);
};
But it just uses first 6 bytes after base64.
How can I solve it?