Monday, October 8, 2012

Conversion Functions for Hash (SHA1) and Hex

Problem Statement: During a recent project there was a need to encrypt the data to be sent to target application using SHA1 algorithm. There was a need to develop some kind of function which can achieve this objective.

SolutionDuring this process i used Visual Studio 2010 to develop the required functions using c++ code and then export these functions using dll.

This dll can be called in your VUGen script to encode the string using SHA1 algorithm and send it back to you (this generates the code in base-64).

Also this dll has some more basic utility like converting a string to hex and vice-versa. The usage of the functions can be seen in the screenshot below:


Hope this is helpful to you in your projects; if anyone needs any custom functions then i can probably add them later into this dll.

PS: I can't post the dll here in this post due to option restrictions; you can mail me if you need it then i can send you the dll.

24 comments:

  1. send at bharat.kushwah@gmail.com

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. unil, Could you plz share the HashMe function which you have used???

    daniel.kavin@gmail.com

    ReplyDelete
  4. Hello Sunil,
    Can you please share the dll with me at madhuri.swarna@gmail.com. Also, can this function output a SHA256 encoded string in base64 format?

    Thank you in advance!

    ReplyDelete
  5. Hi Sunil,
    Great Post.
    Can you share the DLL with me at mithun.nagabhushan@gmail.com.
    Thanks

    ReplyDelete
  6. Hi Sunil,

    Please share the dll with me at anubhav.ktyagi@gmail.com

    Thanks.

    ReplyDelete
  7. Hi Sunil,

    Can you share the SHA-256 dll to my email id (muthu.sivvel@gmail.com).

    Regards,
    Muthukumaran K

    ReplyDelete
  8. Hi Sunil.. do you have a dll for SHA-256 encoding as well? If so, could you please share the same to aishwariya.bhavan@gmail.com ?

    ReplyDelete
  9. Hi Sunil,

    This is really great stuff. This is exactly what I was searching for.
    Could please email me the .dll to rounak.sheri@gmail.com

    Thanks in advance.

    Regards,
    Rounak

    ReplyDelete
  10. hi sunil

    great! am looking out just for this. can u email me to dll to hemz2511@gmail.com. is it posisble to hash with a key provided?

    ReplyDelete
  11. Thanks for this. Could you also email the dll to mikereis@hotmail.com?

    ReplyDelete
  12. Hi Sunil

    Kindly email me dll to muthusamy.prabu@gmail.com

    Thanks in advance

    Regards
    Prabu.M

    ReplyDelete
  13. Hi Sunil,

    Can you please share the dll ?poornachandra209@gmail.com. Also, can this function output a SHA256 encoded string with a secret key in base64 format?

    Thanks
    Poorna

    ReplyDelete
  14. Hi Sunil,

    Kindly share the dll to my mailid: jones_1390@yahoo.com. This would be very much helpful.

    ReplyDelete
  15. Hi Sunil,

    Can you please share the dll to ramkumar_k78@yahoo.com. Thanks in advance.

    Regards,
    Ram

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. Please share the dll to jothom0306@gmail.com. Thanks!

    ReplyDelete
  18. gentilmente puoi anche condividere la dll con me? criptocode@gmail.com

    ReplyDelete
  19. Hi Sunil,

    Please share the dll to mdhanifa247@gmail.com. Thanks in Advance

    ReplyDelete
  20. Hi Sunil,
    Could you please share the dll to vijaybanna@gmail.com
    Thanks for your help.

    ReplyDelete
  21. Hi Sunil,

    Please share the dll to ntsampath@gmail.com. Thanks.

    ReplyDelete
  22. Hi Sunil,
    please post the dll to murali.k4141@gmail.com
    Thanks

    ReplyDelete
  23. HI Sunil,
    Can you post the dll to rex_13@rediffmail.com. I am required to concert a string to sha512 hexa
    Thanks

    ReplyDelete
  24. Hi Sunil,
    Could you please share the dll to mailmesaurabh12@gmail.com

    Thanks

    ReplyDelete