简体   繁体   中英

GCP KMS API max size supported text

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,

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM