Snippets tagged “hexadecimal”
5 snippets use this tag.
- Converting A String To Hexadecimal In JavaJava
To convert a string to a hexadecimal string in Java, you can use the encodeHexString method of the org.apache.commons.codec.binary.Hex class.
- Generating a random hex color code with PHPPHP
You can use the dechex function in PHP to convert a random number to a hexadecimal value, and then use that value as a color code.
- How can I generate an MD5 hash in Java?Java
To generate an MD5 hash in Java, you can use the MessageDigest class from the java.security package.
- How to Convert Decimal to Hexadecimal in JavaScriptJavaScript
Read this tutorial and find the easiest way of converting the decimal number to hexadecimal in JavaScript. Also, find information about the number systems.
- How to hash some String with SHA-256 in Java?Java
To hash a string using SHA-256 in Java, you can use the MessageDigest class from the java.security package.