mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-02-28 18:39:06 +00:00
Update BouncyCastleAesBytesEncryptorEquivalencyTest.java
This commit is contained in:
parent
bfd36d9a54
commit
d9f7422c2c
@ -38,6 +38,7 @@ public class BouncyCastleAesBytesEncryptorEquivalencyTest {
|
||||
public void setup() {
|
||||
// generate random password, salt, and test data
|
||||
password = UUID.randomUUID().toString();
|
||||
/** insecure salt byte, recommend 64 or larger than 64*/
|
||||
byte[] saltBytes = new byte[16];
|
||||
secureRandom.nextBytes(saltBytes);
|
||||
salt = new String(Hex.encode(saltBytes));
|
||||
|
Loading…
x
Reference in New Issue
Block a user