Class SaltSerializer

java.lang.Object
eu.steffo.cleaver.logic.utils.SaltSerializer

public final class SaltSerializer
extends Object
An utility class to serialize and deserialize byte arrays.
  • Constructor Details

    • SaltSerializer

      private SaltSerializer()
      Disallow instantiations of this class.
  • Method Details

    • serialize

      public static String serialize​(byte[] array)
      Serialize a byte array (converting it into a String).
      Parameters:
      array - The input array.
      Returns:
      The resulting string.
    • deserialize

      public static byte[] deserialize​(String string)
      Deserialize a String containing a byte array.
      Parameters:
      string - The input string.
      Returns:
      The resulting byte array.