You are viewing a single comment's thread. Return to all comments →
public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); byte[] hash = MessageDigest.getInstance("SHA-256").digest(in.nextLine().getBytes()); for (byte b : hash) { System.out.printf("%02x", b); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Java SHA-256
You are viewing a single comment's thread. Return to all comments →