Ethan Beardsley

Greenhorn
+ Follow
since Feb 18, 2021
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ethan Beardsley

Hello,
This is my first post and I'm glad to be here. I am having a problem with my code. I am trying to extract a key from a created file, and then turn this into a private key which then is used to encrpt a big integer. The problem I am getting is when the Private Key is created I am getting the following error.

I have looked everywhere I can't seem to find an answer on why this doesn't work. Here is an example of a key that is generated in a separate file, provided to me.


Finally here is the code where I am getting the key from the file and then trying to construct a private key:


From this private Key I am trying to get the modulus and the private exponent.
Thank you very much for taking the time to read this.
3 years ago