Skip to content

Commit

Permalink
Merge pull request flutter#1947 from mpcomplete/base64
Browse files Browse the repository at this point in the history
Use crypto package for BASE64 encoding.
  • Loading branch information
mpcomplete committed Nov 4, 2015
2 parents 2e7867b + 83d3bcc commit 1763dd3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion sky/packages/flx/lib/signing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
// found in the LICENSE file.

import 'dart:async';
import 'dart:convert';
import 'dart:convert' hide BASE64;
import 'dart:io';
import 'dart:typed_data';

import 'package:asn1lib/asn1lib.dart';
import 'package:bignum/bignum.dart';
import 'package:cipher/cipher.dart';
import 'package:cipher/impl/client.dart';
import 'package:crypto/crypto.dart';

export 'package:cipher/cipher.dart' show AsymmetricKeyPair;

Expand Down
1 change: 1 addition & 0 deletions sky/packages/flx/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
yaml: ^2.1.3
asn1lib: ^0.4.1
cipher: ^0.7.1
crypto: ^0.9.1
path: ^1.3.0
environment:
sdk: '>=1.12.0 <2.0.0'
3 changes: 2 additions & 1 deletion sky/unit/test/flx/bundle_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import 'dart:convert';
import 'dart:convert' hide BASE64;
import 'dart:typed_data';
import 'dart:io';

import 'package:crypto/crypto.dart';
import 'package:flx/signing.dart';
import 'package:flx/bundle.dart';
import 'package:path/path.dart' as path;
Expand Down
5 changes: 3 additions & 2 deletions sky/unit/test/flx/signing_test.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import 'dart:async';
import 'dart:convert';
import 'dart:convert' hide BASE64;
import 'dart:typed_data';

import 'package:bignum/bignum.dart';
import 'package:cipher/cipher.dart' hide CipherParameters;
import 'package:crypto/crypto.dart';
import 'package:flx/signing.dart';
import 'package:quiver/testing/async.dart';
import 'package:test/test.dart';
import 'package:cipher/cipher.dart' hide CipherParameters;

main() async {
// The following constant was generated via the openssl shell commands:
Expand Down

0 comments on commit 1763dd3

Please sign in to comment.