A simple RSA encryption service that matches Java's encryption logic for Postman headers.
- 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