Skip to content

Commit d9f7422

Browse files
YYTVickyrwinch
authored andcommitted
Update BouncyCastleAesBytesEncryptorEquivalencyTest.java
1 parent bfd36d9 commit d9f7422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crypto/src/test/java/org/springframework/security/crypto/encrypt/BouncyCastleAesBytesEncryptorEquivalencyTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class BouncyCastleAesBytesEncryptorEquivalencyTest {
3838
public void setup() {
3939
// generate random password, salt, and test data
4040
password = UUID.randomUUID().toString();
41+
/** insecure salt byte, recommend 64 or larger than 64*/
4142
byte[] saltBytes = new byte[16];
4243
secureRandom.nextBytes(saltBytes);
4344
salt = new String(Hex.encode(saltBytes));

0 commit comments

Comments
 (0)