Enkash Developer Portal
Home
Home
Login
  1. Rewards & Incentives
  • Explore Our Product Suite
  • Payment Gateway
    • Set Up Payment Gateway
    • Payment Options
    • Easy API Setup
    • Payment Gateway APIs
  • Payouts
    • Set Up Payouts
    • Payout APIs
  • Prepaid Cards
    • Key Capabilities
    • Set Up Prepaid Cards
    • Prepaid Card APIs
  • Wallet
    • Wallet APIs
    • wallet payment api
  • Bharat Connect (BBPS)
    • Vendor Payment
    • Bill Payment
  • Accounts Payable
    • Accounts Payable APIs
  • Account Receivable
    • Accounts Receivable Overview
    • Account Receivable APIs
  • Expense Management
    • Expense Management Overview
    • About Authorization
    • Expense APIs
  • Rewards & Incentives
    • About Rewards
    • Getting Started
    • Encryption & Decryption Guide
    • Reward Allocation
    • Incentive Allocation
    • Reward APIs
  • Verification Suite
    • Verification Suite Overview
    • Verification Suite APIs
  1. Rewards & Incentives

Request Encryption Using AES

All API requests must be encrypted using AES (ECB mode, PKCS5Padding)

Required Imports#

Encrypt Function#

Generate SecretKeySpec#

Decrypt Function#

Developer Tips#

Remove double quotes from plaintext before encrypting
Avoid trailing whitespaces in the encrypted string
Ensure encrypted payloads are passed in the correct request field (e.g., payload, requestData)
Modified at 2025-05-23 21:48:21
Previous
Getting Started
Next
Reward Allocation
Built with