MD5 with RSA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sean Len
    New Member
    • Oct 2010
    • 13

    MD5 with RSA

    Hi all, I currently working on a project that need to perform a security hashing that involve both MD5 and RSA.
    MD5 hashing is easy to implement. But I have no idea on how RSA works. I perform some research online and I notice most RSA involve Public and Private Keys to perform signing.

    Do any1 have experience on this kind of hash method?
    Any sample code can provided in order for me to get a better understanding?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    RSA is not a hashing method, RSA is an encryption method using private/public keys.

    Comment

    • Sean Len
      New Member
      • Oct 2010
      • 13

      #3
      Thanks, I also notice the different between these two.
      But anyway, can I first use MD5 hash my string, then use RSA to encrypt the hash result? Or the other way round?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        that depends on what you want. hashing and encryption usually serve different purposes.

        Comment

        • Sean Len
          New Member
          • Oct 2010
          • 13

          #5
          Im working on a integration between gateway.
          The 2nd party used MD5 with RSA. But they provide Java source code.
          My part is .NET, therefore problems come.

          Comment

          Working...