Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Issue 1159093002: Implement a Base64 codec (Closed)

Created:
5 years, 6 months ago by Alexander Ivanov
Modified:
5 years, 6 months ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/crypto.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Implement a Base64 codec Implement a Base64 codec similar to codecs in 'dart:convert'. `CryptoUtils.bytesToBase64` and `CryptoUtils.base64StringToBytes` remain for backward compatibility, but they internally invoke `Base64.encode` and `Base64.decode` respectively BUG= R=lrn@google.com, sgjesse@google.com Committed: https://github.com/dart-lang/crypto/commit/3a2b31228cfe03880af829798ffe16d05f37f6e3

Patch Set 1 #

Total comments: 59

Patch Set 2 : Address review comments #

Total comments: 14

Patch Set 3 : Address some more stylistic/documentation comments from the codereview. #

Total comments: 22

Patch Set 4 : Check safe/unsafe characters in decoder for consistency #

Total comments: 6

Patch Set 5 : Remove newlines after dart-docs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -161 lines) Patch
M lib/crypto.dart View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A lib/src/base64.dart View 1 2 3 4 1 chunk +377 lines, -0 lines 0 comments Download
M lib/src/crypto_utils.dart View 1 1 chunk +4 lines, -137 lines 0 comments Download
M test/base64_test.dart View 1 2 3 7 chunks +167 lines, -24 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
Alexander Ivanov
5 years, 6 months ago (2015-05-28 14:24:13 UTC) #2
Lasse Reichstein Nielsen
First comments, purely cosmetic. https://codereview.chromium.org/1159093002/diff/1/lib/crypto.dart File lib/crypto.dart (right): https://codereview.chromium.org/1159093002/diff/1/lib/crypto.dart#newcode22 lib/crypto.dart:22: part 'src/base64.dart'; We may want ...
5 years, 6 months ago (2015-05-29 06:48:43 UTC) #3
Søren Gjesse
As an update to Lasses comments I forgot to tell you about the Dart style ...
5 years, 6 months ago (2015-05-29 07:14:13 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/1159093002/diff/1/lib/src/base64.dart File lib/src/base64.dart (right): https://codereview.chromium.org/1159093002/diff/1/lib/src/base64.dart#newcode65 lib/src/base64.dart:65: class Base64Encoder extends Converter<List<int>, String> { Could generally use ...
5 years, 6 months ago (2015-05-29 07:15:16 UTC) #5
Alexander Ivanov
https://codereview.chromium.org/1159093002/diff/1/lib/src/base64.dart File lib/src/base64.dart (right): https://codereview.chromium.org/1159093002/diff/1/lib/src/base64.dart#newcode3 lib/src/base64.dart:3: const Base64Codec Base64 = const Base64Codec(); On 2015/05/29 06:48:41, ...
5 years, 6 months ago (2015-05-29 13:12:06 UTC) #6
Alexander Ivanov
5 years, 6 months ago (2015-05-29 13:12:09 UTC) #7
Lasse Reichstein Nielsen
LGTM. Good stuff! https://codereview.chromium.org/1159093002/diff/20001/lib/crypto.dart File lib/crypto.dart (right): https://codereview.chromium.org/1159093002/diff/20001/lib/crypto.dart#newcode2 lib/crypto.dart:2: Extra line doesn't belong here. https://codereview.chromium.org/1159093002/diff/20001/lib/src/base64.dart ...
5 years, 6 months ago (2015-05-29 14:15:42 UTC) #8
Søren Gjesse
LGTM, with comments Nice work! https://codereview.chromium.org/1159093002/diff/40001/lib/src/base64.dart File lib/src/base64.dart (right): https://codereview.chromium.org/1159093002/diff/40001/lib/src/base64.dart#newcode46 lib/src/base64.dart:46: * the [encoder] and ...
5 years, 6 months ago (2015-06-01 12:20:59 UTC) #9
Alexander Ivanov
https://codereview.chromium.org/1159093002/diff/20001/lib/crypto.dart File lib/crypto.dart (right): https://codereview.chromium.org/1159093002/diff/20001/lib/crypto.dart#newcode2 lib/crypto.dart:2: On 2015/05/29 14:15:41, Lasse Reichstein Nielsen wrote: > Extra ...
5 years, 6 months ago (2015-06-03 09:14:58 UTC) #10
Alexander Ivanov
https://codereview.chromium.org/1159093002/diff/40001/lib/src/base64.dart File lib/src/base64.dart (right): https://codereview.chromium.org/1159093002/diff/40001/lib/src/base64.dart#newcode46 lib/src/base64.dart:46: * the [encoder] and [encode] use '-' instead of ...
5 years, 6 months ago (2015-06-03 09:19:47 UTC) #11
Søren Gjesse
Just a few more comments. https://codereview.chromium.org/1159093002/diff/50001/lib/src/base64.dart File lib/src/base64.dart (right): https://codereview.chromium.org/1159093002/diff/50001/lib/src/base64.dart#newcode113 lib/src/base64.dart:113: nit: Please remove the ...
5 years, 6 months ago (2015-06-03 09:20:58 UTC) #12
Alexander Ivanov
https://codereview.chromium.org/1159093002/diff/50001/lib/src/base64.dart File lib/src/base64.dart (right): https://codereview.chromium.org/1159093002/diff/50001/lib/src/base64.dart#newcode113 lib/src/base64.dart:113: On 2015/06/03 09:20:58, Søren Gjesse wrote: > nit: Please ...
5 years, 6 months ago (2015-06-03 09:32:53 UTC) #13
Alexander Ivanov
5 years, 6 months ago (2015-06-03 09:38:11 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:70001) manually as
3a2b31228cfe03880af829798ffe16d05f37f6e3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698