leocavalcante / encrypt

🔒 A set of high-level APIs over PointyCastle for two-way cryptography.
BSD 3-Clause "New" or "Revised" License
348 stars 141 forks source link

Decrypt data from database #131

Closed Conrado916645 closed 4 years ago

Conrado916645 commented 4 years ago

my data are save from my sqflite when retrieve the data how can i decrypt it. iam using AES

Conrado916645 commented 4 years ago

class PassEncryptDecrypt{

static final key = Key.fromUtf8('samplecode'); static final iv = IV.fromLength(16);

static final encrypter = Encrypter(AES(key));

encryptPassword(String password){ return encrypter.encrypt(password, iv: iv); }

decryptPassword(String password){ return encrypter.decrypt(password, iv: iv); } }

this is my class I am trying to decrypt the data from the database.

Conrado916645 commented 4 years ago

I just figured it out thanks.

HitendraRathod10 commented 2 years ago

Can you give solution here ? I am trying to decrypt data from firebase. But I didn't get expected result.