crypto.Util Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crypto-core Show documentation
Show all versions of crypto-core Show documentation
A simple fast encryption library for the JVM uses standard best practices and standard JVM classes
package crypto;
import java.util.Random;
public class Util {
public static final byte[] genData(int byteLen) {
byte[] v = new byte[byteLen];
Random r = new Random();
for (int i = 0; i < (byteLen); i++) {
v[i] = (byte) r.nextInt(127);
}
return v;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy