MessageDigest.Digest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Digest() |
Completes the hash computation by performing final operations such as padding. |
Digest(Byte[]) |
Performs a final update on the digest using the specified array of bytes, then completes the digest computation. |
Digest(Byte[], Int32, Int32) |
Completes the hash computation by performing final operations such as padding. |
Digest()
Completes the hash computation by performing final operations such as padding.
[Android.Runtime.Register("digest", "()[B", "GetDigestHandler")]
public virtual byte[] Digest ();
[<Android.Runtime.Register("digest", "()[B", "GetDigestHandler")>]
abstract member Digest : unit -> byte[]
override this.Digest : unit -> byte[]
Returns
the array of bytes for the resulting hash value.
- Attributes
Remarks
Completes the hash computation by performing final operations such as padding. The digest is reset after this call is made.
Java documentation for java.security.MessageDigest.digest()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
See also
Applies to
Digest(Byte[])
Performs a final update on the digest using the specified array of bytes, then completes the digest computation.
[Android.Runtime.Register("digest", "([B)[B", "GetDigest_arrayBHandler")]
public virtual byte[] Digest (byte[] input);
[<Android.Runtime.Register("digest", "([B)[B", "GetDigest_arrayBHandler")>]
abstract member Digest : byte[] -> byte[]
override this.Digest : byte[] -> byte[]
Parameters
- input
- Byte[]
the input to be updated before the digest is completed.
Returns
the array of bytes for the resulting hash value.
- Attributes
Remarks
Performs a final update on the digest using the specified array of bytes, then completes the digest computation. That is, this method first calls #update(byte[]) update(input)
, passing the input array to the update
method, then calls #digest() digest()
.
Java documentation for java.security.MessageDigest.digest(byte[])
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
See also
Applies to
Digest(Byte[], Int32, Int32)
Completes the hash computation by performing final operations such as padding.
[Android.Runtime.Register("digest", "([BII)I", "GetDigest_arrayBIIHandler")]
public virtual int Digest (byte[] buf, int offset, int len);
[<Android.Runtime.Register("digest", "([BII)I", "GetDigest_arrayBIIHandler")>]
abstract member Digest : byte[] * int * int -> int
override this.Digest : byte[] * int * int -> int
Parameters
- buf
- Byte[]
output buffer for the computed digest
- offset
- Int32
offset into the output buffer to begin storing the digest
- len
- Int32
number of bytes within buf allotted for the digest
Returns
the number of bytes placed into buf
- Attributes
Exceptions
if an error occurs
if offset
or len
are not valid in respect to
buf
Remarks
Completes the hash computation by performing final operations such as padding. The digest is reset after this call is made.
Java documentation for java.security.MessageDigest.digest(byte[], int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.