DoFinal() public method

public DoFinal ( byte output, int outOff ) : int
output byte
outOff int
return int
Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public string FinalString()
 {
     byte[] hash = new byte[16];
     digest.DoFinal(hash, 0);
     return(BitConverter.ToString(hash).Replace("-", "").ToLower());
 }