RSA

RSA

 

In order to protect the information it is necessary to send the request with sensitive data in an encrypted way using the RSA method.

  • STEP 1: Generate a unique 32 character key per request.
  • STEP 2: Encrypt the unique key generated with the RSA algorithm using the public key that Sr.Pago. (This generated value will be sent in the KEY parameter)
  • STEP 3: Encrypt the JSON of the request with the AES256 algorithm using the 32-character key generated in step 1. (This generated value will be sent in the DATA parameter).

Note: KEY AND DATA must be encoded in base64 for correct submission.

RSA Public keys

PHP – Encryption.php

RUBY – Encryption.rb

PYTHON – Python.pem

JAVA – srpago_encryption

OBJECTIVE C –Objective C

Node.JS – srpago.encryption.js

Was this article helpful to you? Yes No 43