Wednesday 29 August 2018

Help - How to Reverse a crypto hmac function

Hello friends!I have a crypto function here, and the output of testcardmac is: 3b9eb72dbad8e246b5b3483a7bc18e57708d3cbf3db84594b00bc0360c3f33f1​var crypto = require('crypto'); var testcard = '378282246310005' var hmackey = '038445bb4e33677064ff911095b2416efe272adf' var testcardmac = crypto .createHmac('SHA256', hmackey) .update(testcard) .digest('hex'); console.log(testcardmac);​If I wanted to reverse this to get testcard again, how is this done? (conceptually and/or programmatically)And if so what is the reverse output of:cb15h+Mzl5pZxeNSWe3b

Submitted August 29, 2018 at 12:31PM by StellarSteve

No comments:

Post a Comment