Skip to content

awesomeKelly04/simple_rsa_encryption_service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Crypto Service

A simple RSA encryption service that matches Java's encryption logic for Postman headers.

Quick Start

  1. Install dependencies:
npm install

# Start App
npm run start

# Start App on nodemon
npm run dev

# Start App for crypto library
npm run dev:crypto

# Run the full test suite
npm test

# Quick test just the headers endpoint
npm run test:headers

# Test with curl
curl -X POST http://localhost:3000/headers \
  -H "Content-Type: application/json" \
  -d "{
    \"secureTokenData\": \"APP-123\",
    \"signatureData\": \"test data\",
    \"publicKey\": \"$(node -p \"process.env.PUBLIC_KEY\")\",
    \"privateKey\": \"$(node -p \"process.env.PRIVATE_KEY\")\"
  }"

# Test health check
curl http://localhost:3000/health

About

A simple RSA encryption service that matches Java's encryption logic for Postman headers in Virtual Account Service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors