terl / lazysodium-java

A Java implementation of the Libsodium crypto library. For the lazy dev.
https://github.com/terl/lazysodium-java/wiki
Mozilla Public License 2.0
135 stars 47 forks source link

Support different message encoding formats #70

Closed coder-hugo closed 4 years ago

coder-hugo commented 4 years ago

This PR adds support for different message encoding formats (hex, base64). The current implementation just supports hex when using the lazy methods but it's quite common to use the base64 encoding for encrypted content. To not break the public API of LazySodium this PR doesn't touch any of the static methods for the hex encoding it just uses them in the HexMessageEncoder.

gurpreet- commented 4 years ago

This is more than amazing stuff! I had always planned to do this. Many thanks!