Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java secretkey

// create new key
SecretKey secretKey = KeyGenerator.getInstance("AES").generateKey();
// get base64 encoded version of the key
String encodedKey = Base64.getEncoder().encodeToString(secretKey.getEncoded());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #secretkey
ADD COMMENT
Topic
Name
6+3 =