Avatar of davidw88
davidw88

asked on 

RSA: Public Key & Private Key

Hi experts,

Here is a question about public key and private key for RSA.

My employer has an e-commerce website that has credit card processing system. This system has two parts. The first part is front-end, online part that enables clients to pay money online synchronously.  The second part is back-end that runs as a cron job. This cron job runs every 15 minutes to check if a client's balance is less than a pre-set value. If it is, then the cron job (back-end credit card system) runs to charge.

The credit card system uses RSA to encript and decrypt. Both the front-end and back-end shares with the same public key. And the back-end keeps the private key.

My supervisor requests me to write a Python version to replace the back-end Java code to do the same work. After researching on it, I am afraid that there will be an incompatibility issue as Python script can not read serialized Java objects (we do not want any Jython or JVM to run on the server).  After I told my worries, my supervisor told me to retrieve modules in the public key so that Python can use to create new public and private keys.

As I never worked on projects in credit card and encryption/decryption fields before, I wonder if I can get some ideas from experts in these fields. What I want to know is -

Does my supervisor's suggestion make sense?

Thanks so much.

PythonJavaEncryption

Avatar of undefined
Last Comment
davidw88
Avatar of davidw88
davidw88

ASKER

Hi experts,

Please give suggestions... Thanks!
ASKER CERTIFIED SOLUTION
Avatar of mrcoffee365
mrcoffee365
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of davidw88
davidw88

ASKER

I see. thanks mrcoffee!
Java
Java

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo