Reputation: 11
I want to use the symmetric key to encrypt and decrypt the text. I will like to know what is the maximum size of user entered text (how many characters) that can be encrypted and decrypted with the GCP symmetric keys. Thanks,
Upvotes: 1
Views: 1328
Reputation: 2725
I would guess you are going to use "cryptoKeys.encrypt" method...
According to Method: cryptoKeys.encrypt documentation the limit is 64Kb (in bytes).
In my personal experinece (cloud function developed in Go) - I got exceptions with a message: "Request payload size exceeds the limit: 1048576 bytes"
To overcome that limitation I used another Google library - Tink - A multi-language, cross-platform library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.
Upvotes: 1