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();
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();