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 Summary
Constructors Modifier Constructor Description private
SaltSerializer()
Disallow instantiations of this class. -
Method Summary
-
Constructor Details
-
SaltSerializer
private SaltSerializer()Disallow instantiations of this class.
-
-
Method Details
-
serialize
Serialize a byte array (converting it into aString
).- Parameters:
array
- The input array.- Returns:
- The resulting string.
-
deserialize
Deserialize aString
containing a byte array.- Parameters:
string
- The input string.- Returns:
- The resulting byte array.
-