This week's book giveaway is in the OCP forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests and have Scott Selikoff and Jeanne Boyarsky on-line! See this thread for details.
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.
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad: