I am currently working on a encryption and decryption service for my application, using Google Tink. The problem is the following: I want to program it without using (nearly) duplicate code and therefore I had the idea of using generics. If parsing the Strings to a byte[] is the only option I will be doing that, but I’d rather not.
Tag: tink
How to easily encrypt and decrypt a String using Tink?
Until now, I was using jasypt to encrypt a string before storing it on disk on app closing, and later when opening the app for decrypt the string after retrieving it from disk. It was super easy with jasypt, this was the code: It worked perfectly, but now, jasypt is deprecated and I’m trying to migrate to the Google Tink