Home » Core Java » security » MessageDigest

MessageDigest

Java MessageDigest Example

In this post, we are going to discuss about the class java.security.MessageDigest 1. MessageDigest Class This MessageDigest class provides applications the functionality of a message digest algorithm, such as SHA-1 or SHA-256. Message digests are secure one-way hash functions that take arbitrary-sized data and output a fixed-length hash value. A message digest is a cryptographic hash function containing a string ...

Read More »

Generate a File Checksum value in Java

In this tutorial we are going to see how to generate a file’s Checksum value in Java using the SHA-1 hash function. If you are working on your applications security specs it might be useful to consider using checksums to improve the security and integrity of file transfer or file sharing actions. In short, the basic steps one should take ...

Read More »