Search Result

Collapse
3 results in 0.0014 seconds.
Keywords
Members
Tags
md5
  •  

  • the byte string is same in python and c#,but md5 hashcode is different

    hi,everyone.

    I want to generate the hash code from a string,e.g."咖啡" ,but the hashcode I get from python and c# is different,the one from python is what I want

    c#
    Code:
    String str = "咖啡";
    MD5 m = MD5.Create();
    byte[] data = m.ComputeHash(Encoding.Default.GetBytes(str));
    StringBuilder sbuilder = new StringBuilder();
    for(int i=0;i<data.Length;i++){
    ...
    See more | Go to post

  • Sean Len
    started a topic MD5 with RSA

    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?
    See more | Go to post

  • Sfreak
    started a topic Doubt about HashCodes

    Doubt about HashCodes

    Hi,

    I have a doubt about c# HashCodes. When I compare a string and get its hashcode an INT will be returned right? We all know that an int has 10 digits lenght. My doubt is about this int generated. I know that a string will always return the SAME hashcode AND the hashcode algorithm says the hashcode is not UNIQUE. So... do we have a chance to get different strings with the same hashcode??? Or there is a criptography behind the String...
    See more | Go to post
Working...