Java SHA-1 Hashing String In this Java tutorial, we learn how to use the SHA-1 hashing algorithm to hash a String value in Java programming language.