public interface BytesRepresentation
String instances (typically output of hashing and encryption
or input of decryption). It is common, that output hashes are in lower-cased HEX representation.
On the other hand, representation for encryption algorithm varies. It is valid to use any representation as Base64
seems to be more common because it uses less characters than HEX.HexRepresentation,
Base64Representation| Modifier and Type | Method and Description |
|---|---|
byte[] |
toBytes(String string)
Converts given
String in this representation back to to byte array. |
String |
toString(byte[] bytes)
Converts given byte array to
String in this representation. |
Copyright © 2014. All rights reserved.