Skip to content

Instantly share code, notes, and snippets.

@vijayinyoutube
Created June 13, 2021 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijayinyoutube/c1a3571798506dee74bd7162047e539e to your computer and use it in GitHub Desktop.
Save vijayinyoutube/c1a3571798506dee74bd7162047e539e to your computer and use it in GitHub Desktop.
performEncryption(response) async {
var encrypted = encryption.encryptMsg(response.toString()).base16;
print(encrypted);
var decrypted = encryption.decryptMsg(encryption.getCode(encrypted));
print(decrypted);
final data1 = await json.decode(decrypted);
setState(() {
accounts = data1["account"];
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment