Encryption and Decryption Logic for ICICI bank Apis

PFB & PFA Kindly start the live testing and let us know incase of any support is required from bank end   Headers :-   accept: */*,  content-length: 684, content-type: text/plain   APIKEY: ADGpGADpJjzvsBDrKT07beqVo6IIsOuK “AGGRID”:”OTOE0832″ “AGGRNAME”:”G10XTECH” “URN”:”SR256689761 APIs:- https://apibankingone.icicibank.com/api/Corporate/CIB/v1/AccountStatement https://apibankingone.icicibank.com/api/Corporate/CIB/v1/BalanceInquiry   Encryption & Decryption:- AES-128-CBC Algorithm Name: RSA Mode: ECB Padding: PKCS1Padding RSA/ECB/PKCS1Padding Encryption Logic:-… Continue reading Encryption and Decryption Logic for ICICI bank Apis

Encryption of the Data in Node JS for the Bank integration

Here is the encryption doing for the request body from the node js application const express = require(‘express’); const router = express.Router(); const axios = require(‘axios’).default; const mycrypto = require(“../../../javascript/crypto”); const fs = require(‘fs’); const path = require(‘path’); const aesjs = require(“aes-js”); const { RSA, Crypt } = require(‘hybrid-crypto-js’); const rsa = new RSA(); const… Continue reading Encryption of the Data in Node JS for the Bank integration

Hybrid decryption using node js

Here is an example of the decryption function which can be used for the decryption of the encrypted data const encryptedKey1 = fs.readFileSync( path.resolve(__dirname, “../../../../keys/encryptkey.txt”), “utf8”); const EN_PATH = path.resolve(__dirname, “../../../../keys/encrypt.txt”); const EN_KEY = fs.readFileSync(EN_PATH, “utf8”); var key = await mycrypto.decryptViaPrivateKey(encryptedKey1, GTEN_PRIKEY_PATH, PASS); const aescbc = new aesjs.ModeOfOperation.cbc(aesjs.utils.utf8.toBytes(key), “”); let _decryptedText = aescbc.decrypt(Buffer.from(EN_KEY, “base64”)); _decryptedText… Continue reading Hybrid decryption using node js

Node Js App to call back an API

Here is an example of an API to send back an API response when something is posted into and API and called it to an another API. Folder Structure is Like // src/routes/index.js const express = require(‘express’); const router = express.Router(); const axios = require(‘axios’); router.post(‘/fetchStatement’, async (req, res, next) => { try { const… Continue reading Node Js App to call back an API

How to create a REST API with Node.js and Express

to create the REST APIS in the node application Creating a folder structure Open image-20240422-093737.png ├── config/ └── db.js ├── models/ └── Student.js ├── routes/ └── studentRoutes.js ├── controllers/ └── studentController.js ├── app.js └── package.json app.js File const express = require(‘express’) const app = express(); const Student = require(‘./models/student’) const mongoose = require(‘mongoose’); const studentRoutes… Continue reading How to create a REST API with Node.js and Express

Cross-Origin Requests with the CORS NPM Package

Cross-Origin Resource Sharing (CORS) is a security measure browser use to control requests between different web origins. When your web page wants to fetch data from a different domain, CORS ensures it’s done securely. CORS Headers: Access-Control-Allow-Origin: Specifies which origins can access the resource. Access-Control-Allow-Methods: Defines which HTTP methods are allowed for accessing the resource.… Continue reading Cross-Origin Requests with the CORS NPM Package

Understanding the Phases of Node.js: A Comprehensive Guide

Node.js, a powerful and versatile JavaScript runtime, is widely used for building scalable and high-performance applications. One key aspect that sets Node.js apart is its event-driven, non-blocking I/O model, which is orchestrated through a series of phases. In this article, we will delve into the various phases of Node.js and explore how they contribute to… Continue reading Understanding the Phases of Node.js: A Comprehensive Guide

The Advantages of Node-Based Software: Unleashing Creativity and Efficiency

Introduction:Node-based software has revolutionized the world of digital design and creative workflows. By using a visual interface composed of interconnected nodes, this innovative approach offers a range of benefits that make it an excellent choice for various industries. In this article, we explore the advantages of node-based software, highlighting why it has emerged as the… Continue reading The Advantages of Node-Based Software: Unleashing Creativity and Efficiency