Collapse
Submit a Service Request
Contact Information for Technical Support
My Service Notifications
Cannot use the hash_hmac function in PHP
Answer ID 9825 |
Last Review Date 03/12/2019
Why am I unable to use the hash_hmac function in PHP on the Customer Portal or custom scripts?
Environment
PHP, Connect PHP
Oracle B2C Service, All Supported versions
Resolution
The hash_hmac function is part of the "Hash" cryptography extension in PHP. This extension is not enabled in Oracle B2C Service and cannot be enabled. As an alternative, customers should consider using the Crypto API included in Connect PHP. Additional information about the Crypto API can be found by searching for "crypto" in the ConnectPHP documentation:
Answer ID 5169: Technical Documentation and Sample Code
Another alternative would be to send the data to an external server and using the hash_hmac function there.