| Index: lib/crypto/crypto.dart
|
| diff --git a/lib/crypto/crypto.dart b/lib/crypto/crypto.dart
|
| index 7f193c6451aef9b931f059df05084a3e71c945af..821982b7e2b76e9bfbd1ac5d8f51e942c3ece02a 100644
|
| --- a/lib/crypto/crypto.dart
|
| +++ b/lib/crypto/crypto.dart
|
| @@ -106,6 +106,15 @@ class CryptoUtils {
|
| 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);
|
| + }
|
| }
|
|
|
| /**
|
|
|