We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think it messes up some special characters such as 'ő'.
Here is some of my code:
get encrypter async => new Encrypter(new AES(await key)); Future<String> doEncrypt(String text) async { Encrypted encrypted = (await encrypter).encrypt(text); return encrypted.base64; } Future<String> doDecrypt(String text) async { try { Encrypted encrypted = Encrypted(base64.decode(text)); return (await encrypter).decrypt(encrypted).toString(); } catch (e) { return ""; } }
Or here is a full example with the demo code: import 'package:encrypt/encrypt.dart';
void main() { final key = 'my 32 length key................'; final encrypter = Encrypter(AES(key)); final plainText = 'őőőőő ípsum dolor sit amet, consectetur adipiscing elit'; final encrypted = encrypter.encrypt(plainText); final decrypted = encrypter.decrypt(encrypted); print(decrypted); }
The text was updated successfully, but these errors were encountered:
Using utf8 to decode and encode plain Strings, closes #19
68a5d84
Sorry about that. Can you refetch v2.0 an try again, please?
Sorry, something went wrong.
09583af
leocavalcante
No branches or pull requests
I think it messes up some special characters such as 'ő'.
Here is some of my code:
Or here is a full example with the demo code:
import 'package:encrypt/encrypt.dart';
The text was updated successfully, but these errors were encountered: