This encryption add-on was was published years ago as a GitHub gist, but might be a nice starting point if you need encrypted data storage. The add-on encrypts all Gravity Forms data on the way into the database using openssl public encryption. Data can only be decrypted with the associated private key.