Created
February 17, 2014 14:10
-
-
Save mehmetbebek/9051235 to your computer and use it in GitHub Desktop.
Encryption With MD5 at Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
Scanner input = new Scanner(System.in); | |
System.out.println("Input Value"); | |
String willEncryptText = input.next(); | |
byte[] bytesOfMessageText = willEncryptText.getBytes("UTF-8"); | |
MessageDigest md = MessageDigest.getInstance("MD5"); | |
byte[] thedigest = md.digest(bytesOfMessageText); | |
System.out.println(thedigest); | |
} catch (Exception e) { | |
// | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment