https://github.com/comodal/jhex
Just Hex (En|De)coding for Java
https://github.com/comodal/jhex
encoding hex java
Last synced: 4 months ago
JSON representation
Just Hex (En|De)coding for Java
- Host: GitHub
- URL: https://github.com/comodal/jhex
- Owner: comodal
- License: apache-2.0
- Created: 2016-10-13T17:02:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-02T00:48:12.000Z (over 7 years ago)
- Last Synced: 2025-01-11T07:50:11.756Z (about 1 year ago)
- Topics: encoding, hex, java
- Language: Java
- Homepage:
- Size: 296 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jhex [](https://travis-ci.org/comodal/jhex) [  ](https://bintray.com/comodal/libraries/jhex/_latestVersion) [](LICENSE) [](https://codecov.io/gh/comodal/jhex)
[JHex](systems.comodal.jhex/src/main/java/systems/comodal/jhex/JHex.java#L1) provides static utility methods for encoding to and decoding from hexadecimal encoded data.
```java
String hexString = "4265207375726520746F206472696E6B20796F7572204F76616C74696E65";
byte[] decoded = JHex.decode(hexString);
System.out.println(new String(decoded));
String reEncoded = JHex.encode(decoded);
// reEncoded.equals(hexString) == true ... promise.
```