I'm decoding messages with javax.crypto.Cipher and as an output I get byte[]. What is the fastest way to check if my key is correct and byte[] is valid string?
-
Getting a vaid UTF-8 string doesn't guarantee that the key is valid. What are you trying to achieve?JB Nizet– JB Nizet2017-10-20 20:12:25 +00:00Commented Oct 20, 2017 at 20:12
Add a comment
|