What is the default size for AES keys?
2 answers
Could you just call the method getEncoded()
on the return key and then check the length?
Or you can call a method init()
on the KeyGenerator with 128, 192 or 256 bit options.
Or you can compare the returned key from the modeless version of the call with those where the length was explicitly set (using the method init()
) and see which one matches.
0
a source to share