Class Vodozemac

java.lang.Object
io.github.fherbreteau.vodozemac.Vodozemac

public final class Vodozemac extends Object
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.
Loading the native library is handled automatically when this class is first accessed.
Author:
François HERBRETEAU
  • Method Details

    • base64Encode

      public static String base64Encode(byte[] src)
      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

      public static byte[] base64Decode(String src)
      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

      public static String version()
      Returns the version of the underlying vodozemac Rust crate.
      Returns:
      the vodozemac crate version (e.g. "0.10.0")