Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package uk.roundtable.gawain;
- import java.io.PrintStream;
- import java.math.BigInteger;
- import java.security.MessageDigest;
- import java.security.NoSuchAlgorithmException;
- import java.util.Scanner;
- public class Gawain
- {
- public static void main(String[] args)
- {
- Scanner s = new Scanner(System.in);
- String s1 = s.nextLine() + "Ρ ΡΠΉ";
- try {
- BigInteger bigInt = new BigInteger(1, MessageDigest.getInstance("MD5").digest(s1.getBytes()));
- String s2 = bigInt.toString(16);
- System.out.print(s2);
- } catch (NoSuchAlgorithmException e) {
- System.out.println("fail");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement