Your Computer Science Resource

Posts Tagged ‘md5’

Dec
28th

MD5 and SHA-1 Encryption in Java

Java has a built-in MessageDigest class which makes it easy to implement an MD5 or SHA-1 hash (among others). Both of these algorithms produce one-way hashes (they cannot be changed back to their original form), and they are usually used for encryption and for checking the integrity of files (checksum). Although they are probably deemed partially insecure, they are still very widely used.

(more…)