Enkash Developer Portal
Home
Home
Login
Home
Back to home
APIs - Wallet
KYC Status Handling Guide
T&C Acceptance Flow
Encryption & Decryption Guide
Authentication
Auth Token
Wallet Setup
Create Wallet
Update Wallet Details
VKYC Link Generation
VKYC Status
Wallet Management
Add Money to Wallet
Wallet Top-Up from Balance
Wallet Funding Limit Validation
Generate Transaction OTP
Get Transaction Details
Get Wallet Balance
Get Wallet Details
Fund Transfers
Add Beneficiary
Search Beneficiaries
IMPS Fund Transfer
Wallet To Wallet Fund Transfer
Get Fund Transfer Status
Merchant Payments
Debit Wallet for Merchant Transaction
Merchant Settlement Status
Webhooks
Payment Notify Request
Home
Home
Login
Home
Authentication
Encryption Guidelines
#
All API requests must be encrypted using AES (ECB mode, PKCS5Padding) before transmission.
This page provides the required imports, encryption/decryption utilities, and essential developer tips to ensure proper integration.
Encrypting Request Payloads
#
Use the encrypt method to convert plaintext request data into an AES-encrypted Base64 string.
Encrypt Function
#
Generate SecretKeySpec
#
The following utility converts the provided secret key into a 128-bit AES key using SHA-256 hashing.
Decrypt Function
#
Use the following method to decrypt API responses that return AES-encrypted data.
Encryption Secret Key
#
Use the following secret key for all encryption and decryption:
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-12-24 17:06:33
Previous
Encryption & Decryption Guide
Next
Auth Token