Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 353 Bytes

md5.md

File metadata and controls

30 lines (18 loc) · 353 Bytes

md5

import

var crypto = require('crypto');

encrypt

var beforeMD5 = 'Hello World';

var afterMD5 = crypto.createHash('md5').update(beforeMD5).digest('hex');

decrypt

can't decrypt

verify

if (afterMD5 === crypto.createHash('md5').update(beforeMD5).digest('hex')) {

    // ..
}