Skip to content

aws-samples/samples-for-payment-cryptography-service

AWS Payment Cryptography Samples

This repo contains sample code for AWS Payment Cryptography Service for -

  • key exchange between AWS Payment Cryptography with HSMs such as payShield 10k, Atalla AT1000 and Futurex using TR-34 and TR-31 protocols.
  • Various payment flow such as P2PE, Pin (set and verify) and Pin translation and ECDH Pin Set/Reveal

Before starting, ensure that the service is available in the region you want to run the samples in.

Samples

This section contains Python based script to exchange keys between AWS Payment Cryptography Service and HSMs such as payShield 10k, Atalla AT1000 and Futurex. This process can be used for either key migration or for ongoing synchronization. Alternatively, for testing, you can also import plain text keys using either TR-34 or RSA into AWS Payment Cryptography.

Prerequisite

Before running the JAVA or Python based sample applications, you will need to import the required keys into AWS Payment Cryptography. Refer to instructions for importing plain text keys before running the sample applications. Note: This should be used in non-production testing environment only.

This section contains flows such as P2PE, Pin set/verify and translation. Additionally, the flows are implemented using both synchronous and asynchronous APIs showing flexibility of AWS Payment Cryptography.

This section contains ECDH flow for pin set and pin reveal functionalities

This section contains ECDH sample use cases

This section contains Golang based sample code to import/export keys using TR-34 or TR-31 protocols

Contributing

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published