Skip to content

Commit

Permalink
fix: add randomCipheringData
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharking committed Oct 18, 2024
1 parent ebde40b commit c7d85f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/twentysixty/sa/client/util/Aes256cbc.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ private static String randomKey(int size) throws Exception {
KeyGenerator keyGen = KeyGenerator.getInstance(alg);
keyGen.init(size * 8);
SecretKey secretKey = keyGen.generateKey();
return ISOUtil.dumpString(secretKey.getEncoded());
return ISOUtil.hexString(secretKey.getEncoded());
}
}

0 comments on commit c7d85f5

Please sign in to comment.