Java – How to convert byte arrays to Hex
This article shows you a few ways to convert byte arrays or byte to a hexadecimal (base 16 or hex) string representative. String.format, Integer.toHexString, Apache Commons Codec – commons-codec, Spring…
Favourite tutorials for developers
Core Java is the fundamental form of Java. We use it in all Java platforms and technologies. Without going through core Java, it is impossible to advance to advanced Java. Unlike core Java, advanced Java is a specialization of the core Java in some particular domain, such as database handling, networking, and the web.
This article shows you a few ways to convert byte arrays or byte to a hexadecimal (base 16 or hex) string representative. String.format, Integer.toHexString, Apache Commons Codec – commons-codec, Spring…
The sign extension is an operation of increasing the bits while preserves the number’s sign (positive and negative). The Sign extension fills the increased bits with the original of the…
In programming, bitwise shift operators, >> means arithmetic right shift, >>> means logical right shift, the differences: >>, it preserves the sign (positive or negative numbers) after right shift by…
In Java, we can use MessageDigest to get a SHA-256 or SHA3-256 hashing algorithm to hash a string. This article shows how to use Java SHA-256 and SHA3-256 algorithms to…