MCPcopy Create free account
hub / github.com/TrsstProject/trsst / generateAESKey

Method generateAESKey

src/main/java/com/trsst/Crypto.java:104–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 }
103
104 public static byte[] generateAESKey() {
105 byte[] result = new byte[32];
106 new SecureRandom().nextBytes(result);
107 return result;
108 }
109
110 public static byte[] encryptAES(byte[] input, byte[] key)
111 throws InvalidCipherTextException {

Callers 2

testAppMethod · 0.95
postMethod · 0.95

Calls

no outgoing calls

Tested by 1

testAppMethod · 0.76