Setstatuscode(404) response.setbody("no data found") } return callback(null, response) } this function will have a visibility of "public" to mimic an external service. How is decryption performed? Start by re- importing the aes functions and setting secret_key as a variable. Then call the decrypt function on the previously encrypted information: javascript copy the code const last4card = aes.
Decrypt(event.encryptedcarddigits, secret_key) singapore mobile number list additional configuration phone number webhook for simplicity, connect this function directly to a phone number. To set up the phone number: in the twilio console, navigate to the phone numbers section select your phone number, then scroll down to the voice & fax section. Set the encrypted-gather function as a webhook a call comes in under voice configuration.
Save the changes with save. To trigger this function from twilio studio, check out this blog post for how to securely integrate this solution into studio. Enable pci mode you're almost done! Your functions are now protected. However, twilio still retains the collected digits in plain text in voice call histories . below shows an incoming call using the encrypted solution.
The twilio console screenshot
-
- Posts: 18
- Joined: Sun Dec 22, 2024 4:29 am