What's new in Customer Journeys?

Connect and learn more! ×
Crypto API error - Invalid Request: Length of Text exceeds the 1 MB allowable limit — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Crypto API error - Invalid Request: Length of Text exceeds the 1 MB allowable limit

Received Response
17
Views
1
Comments

Summary:
Crypto API error - Invalid Request: Length of Text exceeds the 1 MB allowable limit
Content (required):
In the Crypto API there is a hash_256 function that use this Crypto\MessageDigest object to hash text. It works fine except when more than 1 million bytes are passed:

Catch Error :
Invalid Request: Length of Text exceeds the 1 MB allowable limit

How do we hash_256 the content of a string with more than 1 million bytes?
Version (include the version you are using, if applicable):

Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!