CryptoUtils class
Utility methods for working with message digests.
class CryptoUtils { /** * Convert a list of bytes (for example a message digest) into a hex * string. */ static String bytesToHex(List<int> bytes) { return _CryptoUtils.bytesToHex(bytes); } /** * Converts a list of bytes (for example a message digest) into a * base64 encoded string optionally broken up in to lines of * [lineLength] chars separated by '\r\n'. */ static String bytesToBase64(List<int> bytes, [int lineLength]) { return _CryptoUtils.bytesToBase64(bytes, lineLength); } }
Static Methods
String bytesToHex(List<int> bytes) #
Convert a list of bytes (for example a message digest) into a hex string.
static String bytesToHex(List<int> bytes) { return _CryptoUtils.bytesToHex(bytes); }
String bytesToBase64(List<int> bytes, [int lineLength]) #
Converts a list of bytes (for example a message digest) into a base64 encoded string optionally broken up in to lines of lineLength chars separated by '\r\n'.
static String bytesToBase64(List<int> bytes, [int lineLength]) { return _CryptoUtils.bytesToBase64(bytes, lineLength); }