HenriqueMachine / EasyFingerPrint

35 stars 10 forks source link

How to Encrypt and Decrypt Text #2

Open othreecodes opened 5 years ago

othreecodes commented 5 years ago

Hi @HenriqueMachine . How Can I encrpt a string using this library?

HenriqueMachine commented 5 years ago

Hi @othreecodes, could you give me an example so I can understand the situation?

if you prefer send me a message in my Whatsapp +55(11)95285-7429

Thanks for issue =D

hazico commented 5 years ago

You need to use the cryptoObject that you get from the onSuccess listener and then you can use it to encrypt your string. Cipher cipher = cryptoObject.getCipher(); byte[] encrypted = cipher.doFinal(yourString.getBytes());

but I'm not sure how to use it to decrypt