If you just want to md5 hash a simple string I found this works for me.
var crypto = require('crypto');
var name="braitsch";
var hash = crypto.createHash('md5').update(name).digest('hex');
console.log(hash); // 9b74c9897bac770ffc029102a200c5de
More Related Contents:
- Is it possible to decrypt MD5 hashes?
- Are mutable hashmap keys a dangerous practice?
- How does password salt help against a rainbow table attack?
- Salting Your Password: Best Practices? [closed]
- Is it safe to ignore the possibility of SHA collisions in practice?
- Probability of SHA1 collisions
- Are there any SHA-256 javascript implementations that are generally considered trustworthy? [closed]
- Is there an MD5 Fixed Point where md5(x) == x?
- yii CPasswordHelper: hashPassword and verifyPassword
- How to generate an MD5 file hash in JavaScript/Node.js?
- How come MD5 hash values are not reversible?
- Is calculating an MD5 hash less CPU intensive than SHA family functions?
- When is CRC more appropriate to use than MD5/SHA1?
- How long to brute force a salted SHA-512 hash? (salt provided)
- Can two different strings generate the same MD5 hash code?
- How are hash functions like MD5 unique?
- Why is ‘397’ used for ReSharper GetHashCode override?
- Is MD5 still good enough to uniquely identify files?
- Why are XOR often used in java hashCode() but another bitwise operators are used rarely?
- How can it be impossible to “decrypt” an MD5 hash? [duplicate]
- Is it possible to decrypt MD5 hashes?
- How to “EXPIRE” the “HSET” child key in redis?
- Why are 5381 and 33 so important in the djb2 algorithm?
- Obtaining the hash of a file using the stream capabilities of crypto module (ie: without hash.update and hash.digest)
- Best practice for hashing passwords – SHA256 or SHA512?
- Express.js req.body undefined
- Error: No default engine was specified and no extension was provided
- Node.js 17.0.1 Gatsby error – “digital envelope routines::unsupported … ERR_OSSL_EVP_UNSUPPORTED” [duplicate]
- How to catch an ENOENT with nodejs child_process.spawn?
- ECMA6 generators: yield promise