Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. val input = "input"
  2. val md = java.security.MessageDigest.getInstance("SHA-256")
  3. val ha = new sun.misc.BASE64Encoder().encode(md.digest(input.getBytes))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement