Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 332 Bytes
package md5;
import experiment.Oracle;
import java.util.Arrays;
/**
* Created by spirals on 07/04/16.
*/
public class MD5Oracle implements Oracle<String,byte[]> {
@Override
public boolean assertPerturbation(String input, byte[] output) {
return Arrays.equals(MD5.computeMD5(input.getBytes()), output);
}
}
You can’t perform that action at this time.