HMAC Signing Example in Python

Veracode Integrations Security and Troubleshooting

Veracode provides a Python library you can use to enable HMAC signing within your application.

For an example of how you can use this library, go to: https://github.com/veracode/veracode-python-hmac-example.

By default, the Python authentication library assumes you store credentials in a credentials file or that you pass them with environment variables. If you are using the Python requests library, you can also pass the credentials in the constructor of this request: RequestsAuthPluginVeracodeHMAC:1requests.get(api_url, auth=RequestsAuthPluginVeracodeHMAC( 2 api_key_id=<YOUR_API_KEY>, api_key_secret=<YOUR_API_SECRET_KEY>))