SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using the Spring Security framework, you can use:
import org.springframework.security.crypto.codec.Hex final String testString = "Test String"; final byte[] byteArray = testString.getBytes(); System.out.println(Hex.encode(byteArray));