Card Information Management

Obtaining the PublicKey

  1. Use Online Tool: Visit RSA Encryption and Decryption.

  2. Generate Key Pair: Generate a key pair consisting of a private and publicKey.

    • Ensure that the key length is 1024 bits.
    • Choose the encryption format as Base64.
  3. Encrypt Data: Use the generated publicKey to encrypt data.

  4. Send POST Request: Use the obtained publicKey along with the code from the SMS to send a POST request to POST /v2/card/{cardId}/details.

    • In the request, include the public key and the SMS code.
    • Receive encrypted data in response.
  5. Decrypt Data: Use RSA decryption with the private key on RSA Encryption and Decryption to decrypt the received data.

    • This allows access to the decrypted information.

Example publicKey:

MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCf09baUbcBaHJ501wDqxB6qQAWp9lQkXKYERLSzyQeBIsk2ZhN1AROdYlvkC/3X0YjSMJlM1rU9qdjFqZmRL96yVeMKVGLvzCE2TOuOeoNO3aIky8RHSnLzqRz1P/86t1IDvp7wiQtDb8Hc54sN+gGSrGQvpM5GzRf8/KeMGfUKwIDAQAB

Example privateKey:

MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJ/T1tpRtwFocnnTXAOrEHqpABan2VCRcpgREtLPJB4EiyTZmE3UBE51iW+QL/dfRiNIwmUzWtT2p2MWpmZEv3rJV4wpUYu/MITZM6456g07doiTLxEdKcvOpHPU//zq3UgO+nvCJC0Nvwdzniw36AZKsZC+kzkbNF/z8p4wZ9QrAgMBAAECgYAZEmQmhKG5U3x8Zo7iocJzW3DWHP0sHwTjnJoKqSU4nZcuRVbCWWYA4NNEcFFLSY4jxCrVMUR9xTY7hwwSCEAjw67NfOvfmuEiUvV05kdXVw9zDiS83ahCCVgzU8xX+rnIwGt6jYPwFF3+jEw1W5liZ6bWD1JFDEBxqcnvuWNWQQJBAP56fuelps68OeW87dE+XJYXLbSNqrUXhxBH1nCcT8mCVDgG8g0sRfuv8TeNtow5At/pxuf+JPF9LcVvOJ5wsxsCQQCgyHiN0X+bMOniWp3rS79LYHbeXrkRgPQKa6NrEjBVH01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