public DoFinal ( byte output, int outOff ) : int | ||
output | byte | |
outOff | int | |
Résultat | int |
public static byte[] GetMd5Bytes(byte[] data) { MD5Digest digest = new MD5Digest(); digest.BlockUpdate(data, 0, data.Length); byte[] hash = new byte[16]; digest.DoFinal(hash, 0); return hash; }
public static byte[] GetMd5Bytes(byte[] data) { MD5Digest digest = new MD5Digest(); digest.BlockUpdate(data, 0, data.Length); byte[] hash = new byte[16]; digest.DoFinal(hash, 0); return(hash); }
public string FinalString() { byte[] hash = new byte[16]; digest.DoFinal(hash, 0); return(BitConverter.ToString(hash).Replace("-", "").ToLower()); }