Class Vodozemac
java.lang.Object
io.github.fherbreteau.vodozemac.Vodozemac
Entry point and utility class for the vodozemac library.
This class provides:
- Base64 encoding / decoding utilities, using the same unpadded base64 variant as the underlying vodozemac Rust crate.
- Access to the version string of the bundled vodozemac crate.
- Author:
- François HERBRETEAU
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]base64Decode(String src) Decodes a base64 string to raw bytes.static Stringbase64Encode(byte[] src) Encodes the given bytes to a base64 string without padding.static Stringversion()Returns the version of the underlying vodozemac Rust crate.
-
Method Details
-
base64Encode
Encodes the given bytes to a base64 string without padding.- Parameters:
src- the raw bytes to encode- Returns:
- the base64-encoded representation, without padding
-
base64Decode
Decodes a base64 string to raw bytes.Both padded and unpadded base64 input are accepted.
- Parameters:
src- the base64 string to decode- Returns:
- the decoded raw bytes
- Throws:
VodozemacException- if the input is not valid base64
-
version
Returns the version of the underlying vodozemac Rust crate.- Returns:
- the vodozemac crate version (e.g.
"0.10.0")
-