Aller au contenu

Leaderboard

Popular Content

Showing content with the highest reputation on 20/12/2014 in all areas

  1. Re ! Désolé du double post.. Finalement j'ai trouvé alors voilà la solution ! (il fallait un encodage utf8...) public static String sha256_hash(String value) { StringBuilder Sb = new StringBuilder(); using (SHA256 hash = SHA256Managed.Create()) { Encoding enc = Encoding.UTF8; Byte[] result = hash.ComputeHash(enc.GetBytes(value)); foreach (Byte b in result) Sb.Append(b.ToString("x2")); } return Sb.ToString(); } Désolé du dérangement ! ^^
    1 point
×
×
  • Créer...