Skip to content

Commit

Permalink
Fix Cant Build
Browse files Browse the repository at this point in the history
  • Loading branch information
py7hon committed Oct 22, 2021
1 parent 1833ce1 commit fd3b902
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bin/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ import 'package:filesize/filesize.dart';
import 'package:uup_cli/ansi_pens.dart';
import 'package:uup_cli/download.dart';
import 'package:uup_cli/upload.dart';

import 'dart:math';
import 'dart:convert';

void main(List<String> args) async {
if (args.length != 2) {
exitWithHelp();
}

Codec<String, String> stringToBase64 = utf8.fuse(base64);

final command = args.first;

Expand Down
2 changes: 1 addition & 1 deletion lib/config.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class API {
static String KEY = '';
static String KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweDhiQjYzRDcyQUEzNWU3N2VEMjljOWYzMzMyODlkNUU3NTMxZDQxYzIiLCJpc3MiOiJuZnQtc3RvcmFnZSIsImlhdCI6MTYyOTE3MDg0NTE1MCwibmFtZSI6InNub3dmYWcifQ.R-unOCPztttV3ZqxM8zbpqR3LtaBVkJ_CNirlCZQTm8';
}
4 changes: 4 additions & 0 deletions lib/upload.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:async';
import 'dart:io';
import 'dart:convert';
import 'dart:math';

import 'package:cryptography/cryptography.dart';
import 'package:http/http.dart' as http;
Expand All @@ -11,10 +12,13 @@ import 'package:uup_cli/ansi_pens.dart';
import 'package:uup_cli/encrypt_block_stream.dart';
import 'package:uup_cli/const.dart';


void startEncryptAndUpload(
File file,
) async {

Codec<String, String> stringToBase64 = utf8.fuse(base64);

// Choose the cipher
final cipher = CipherWithAppendedMac(aesCtr, Hmac(sha256));

Expand Down

0 comments on commit fd3b902

Please sign in to comment.