Enkash Developer Portal
Home
Home
Login
  1. Petty Cash
  • Explore Our Product Suite
  • Payment Gateway
    • Set Up Payment Gateway
    • Payment Options
    • Easy API Setup
    • APIs - Payment Gateway
  • Payouts
    • Set Up Payouts
    • APIs - Payout
  • Prepaid Cards
    • Key Capabilities
    • Set Up Prepaid Cards
    • KYC Status Handling Guide
    • T&C Acceptance Flow
    • APIs - Prepaid Card
  • Wallet
    • APIs - Wallet
  • Bharat Connect (BBPS)
    • APIs - BBPS
  • Accounts Payable
    • APIs - Accounts Payable
  • Account Receivable
    • Accounts Receivable Overview
    • APIs - Account Receivable
  • Expense Management
    • About Authorization
    • APIs - Expense
    • Partner Integeation
  • Rewards & Incentives
    • About Rewards
    • Getting Started
    • Encryption & Decryption Guide
    • Reward Allocation
    • Incentive Allocation
    • APIs - Reward
  • Petty Cash
    • Request Encryption Using AES
    • API - Petty Cash
  • Verification Suite
    • Verification Suite Overview
    • APIs - Verification Suite
Home
Home
Login
  1. Petty Cash

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-11-19 13:19:46
Previous
APIs - Reward
Next
API - Petty Cash
Built with