public class CryptoUtils extends Object
Modifier and Type | Field and Description |
---|---|
static SecureRandom |
secureRandom |
Constructor and Description |
---|
CryptoUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
generateRandomBytes(int size)
Generates a random array of bytes, using the singleton
SecureRandom . |
public static final SecureRandom secureRandom
public static byte[] generateRandomBytes(int size)
SecureRandom
.size
- the size of the arrayCopyright © 2015 CrafterCMS. All Rights Reserved.