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