Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported operation: Uint64 accessor not supported by dart2js. #291

Open
sanjay-rb opened this issue Jan 4, 2023 · 0 comments
Open

Unsupported operation: Uint64 accessor not supported by dart2js. #291

sanjay-rb opened this issue Jan 4, 2023 · 0 comments

Comments

@sanjay-rb
Copy link

I am seeing this error for all the encryption method I have used, I am using flutter web, please help me to fix this issue.

Please find the code which I have used:-

import 'package:encrypt/encrypt.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';

class Encryption {
  String version = '1.0';
  final Encrypter encrypter = Encrypter(AES(Key.fromBase16(dotenv.get('KEY'))));

  String encrypt(String input) {
    return encrypter.encrypt(input, iv: IV.fromBase16(dotenv.get('IV'))).base64;
  }

  String decrypt(String input) {
    return encrypter.decrypt64(input, iv: IV.fromBase16(dotenv.get('IV')));
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant