Skip to content

Commit

Permalink
cleanup!
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Aug 16, 2017
1 parent 82d6008 commit eaabce0
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
package org.bouncycastle.crypto.test;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

import org.bouncycastle.crypto.Digest;
import org.bouncycastle.crypto.Mac;
import org.bouncycastle.crypto.digests.KeccakDigest;
import org.bouncycastle.crypto.macs.HMac;
import org.bouncycastle.crypto.params.KeyParameter;
import org.bouncycastle.util.Arrays;
import org.bouncycastle.util.Strings;
import org.bouncycastle.util.encoders.Base64;
import org.bouncycastle.util.encoders.Hex;
import org.bouncycastle.util.encoders.UrlBase64;
import org.bouncycastle.util.test.SimpleTest;

/**
Expand Down Expand Up @@ -364,13 +358,7 @@ protected Digest cloneDigest(Digest digest)

public static void main(
String[] args)
throws NoSuchAlgorithmException
{
MessageDigest md5 = MessageDigest.getInstance("MD5");

System.err.println(Strings.fromByteArray(UrlBase64.encode(
md5.digest(Arrays.concatenate(Strings.toByteArray("thesecretpasword"), Strings.toByteArray("SaltSalt"),
Strings.toByteArray("thesecretpasword"))))));
// runTest(new KeccakDigestTest());
runTest(new KeccakDigestTest());
}
}

0 comments on commit eaabce0

Please sign in to comment.