Added support for getting encrypted and plaintext strings