pvorb/node-md5

How do you output the 16 length MD5 values?

fengmumu1 opened this issue · 1 comments

Thanks for making such a great tool for md5, I have a question requiring a leave
How do you output the 16 length MD5 values?
console.log('md5', md5('test'), md5('test').length )
The result is:
md5 098f6bcd4621d373cade4e832627b4f6 32

I need to need a configuration that can support generating 16 length md5 values like the following result

String test
md5('test',{length: 16, lower: true })
16 length lowercase 4621d373cade4e83

md5('test',{length: 16, lower: false })
16 Length Capital 4621D373CADE4E83

md5('test',{length: 32, lower: true })
32 length lowercase 098f6bcd4621d373cade4e832627b4f6

md5('test',{length: 32, lower: false })
32 Length Capital 098F6BCD4621D373CADE4E832627B4F6

pvorb commented

An MD5 hash always results in 16 bytes. Those 16 bytes are represented as a 32 character hexadecimal number.

I don't see a point in having the configuration you are asking for.