Seed the RNG before signing the package.

This commit is contained in:
Matt Perry 2015-11-04 14:08:24 -05:00
parent 76c54f148b
commit 4ba8a7f077
2 changed files with 4 additions and 2 deletions

View File

@ -182,6 +182,8 @@ class BuildCommand extends FlutterCommand {
archive.addFile(file);
}
await CipherParameters.get().seedRandom();
AsymmetricKeyPair keyPair = keyPairFromPrivateKeyFileSync(privateKeyPath);
Uint8List zipBytes = new Uint8List.fromList(new ZipEncoder().encode(archive));
Bundle bundle = new Bundle.fromContent(

View File

@ -1,5 +1,5 @@
name: sky_tools
version: 0.0.35
version: 0.0.36
description: Tools for building Flutter applications
homepage: http://flutter.io
author: Flutter Authors <flutter-dev@googlegroups.com>
@ -11,7 +11,7 @@ dependencies:
analyzer: ">=0.26.1+17" # see note below
archive: ^1.0.20
args: ^0.13.0
flx: ">=0.0.5 <0.1.0"
flx: ">=0.0.7 <0.1.0"
crypto: ^0.9.1
mustache4dart: ^1.0.0
path: ^1.3.0