posted 3 years ago
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.