Skip to content

Instantly share code, notes, and snippets.

@yakivmospan
Last active December 4, 2017 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yakivmospan/b2137a5a808e967c2d55867df65d10fc to your computer and use it in GitHub Desktop.
Save yakivmospan/b2137a5a808e967c2d55867df65d10fc to your computer and use it in GitHub Desktop.
fun generateDefaultSymmetricKey(): SecretKey {
val keyGenerator = KeyGenerator.getInstance("AES", "BC")
return keyGenerator.generateKey()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment