I am using Keystore to encode and decode data generated for a user using these-
public static Pair encryptData(String data) throws //ex