import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class MainClass {
public static byte[] makeDigest(byte[] mush, long t2, double q2) throws NoSuchAlgorithmException {
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(mush);
md.update(makeBytes(t2, q2));
return md.digest();
}
}
|