0

This the code to create a random secret key, but I am wondering, is there a way to create one based on a string like "hello"?

KeyGenerator kg = KeyGenerator.getInstance("RC4");
SecretKey k = kg.generateKey();
Astoach167
  • 91
  • 1
  • 7

0 Answers0