Skip to content

Instantly share code, notes, and snippets.

View thanhminhmr's full-sized avatar
😻
I may be slow to respond.

Mai Thanh Minh thanhminhmr

😻
I may be slow to respond.
View GitHub Profile
@thanhminhmr
thanhminhmr / string-to-sha1.java
Created January 12, 2020 03:27 — forked from giraam/string-to-sha1.java
Hashing a String with SHA1 in Java
import java.io.*;
import java.util.logging.*;
import javax.xml.bind.DatatypeConverter;
/**
* Hashing with SHA1
*
* @param input String to hash
* @return String hashed
*/