Creating a Keyed Digest Using MD5 : MD5 « Security « Java

Creating a Keyed Digest Using MD5



public class Main {
  public static void main(String[] a) throws Exception {
    byte[] buffer = new byte[10000];
    byte[] key = new byte[8];

    MessageDigest md5 = MessageDigest.getInstance("MD5");
    byte[] k = md5.digest(key);


Related examples in the same category

1.OTP one-time password calculationOTP one-time password calculation
2.Applet to serve as an s/key calculator application wrapper around otp class
3.MD5 BASE64 checksum for the specified input string.
4.MD5 InputStream
5.Implements MD5 functionality on a stream.
6.Fast implementation of RSA's MD5 hash generator in Java JDK Beta-2 or higher
7.MD5 algorithm RFC 1321
8.Contains internal state of the MD5 class
9.Create MD5 String
10.MD5 string
11.MD5 Sum
12.MD5 Hashing utility that builds up a hash from a series of objects and base types fed into it.
13.MD5 MessageDigest
14.Get MD5 string