Unable to retrieve private key #23
-
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi @NapokW, it sounds like Kryptor can't access the private key file. Here is the subroutine that gives that exception. There are lots of things that can cause IOExceptions, so I can't really be more specific than that without knowing more. |
Beta Was this translation helpful? Give feedback.
-
I'm afraid not. I could implement that, but the private key is meant to be kept secret, so I followed the tactic used by Minisign and made it file only. You'll be able to get the private key file working. To figure out what's causing the exception, you could download the source code and remove the try catch that I linked above. |
Beta Was this translation helpful? Give feedback.
-
I really need more detail than that to be able to help. What error are you getting? Have you copied the private key string into it? Did you accidentally copy a signing private key into it? Did you accidentally modify the key? What's the size of the file? |
Beta Was this translation helpful? Give feedback.
-
Thank you, I think I understand the issue now, although I'm not sure what you mean by 'delete it'. What did you delete? Your keys? To specify your private key, you need to use the You also shouldn't be specifying your public key. You should only specify a public key if you're trying to send a file to someone else. |
Beta Was this translation helpful? Give feedback.
-
Nope, it requires using the sender's private key and the recipient's public key. This is because Kryptor performs a key exchange, meaning hybrid encryption is actually used rather than asymmetric encryption. However, as I mentioned before, if the sender is using the default key location, then they never need to specify their private key. So to send a file to someone else, you can just do An important thing to note though is that the encrypted message can't be decrypted by the sender because this is one-way. You've just got to be careful with Have you resolved the original issue you were having? If you have, I'll go ahead and close this issue. |
Beta Was this translation helpful? Give feedback.
-
And he's gone... |
Beta Was this translation helpful? Give feedback.
Thank you, I think I understand the issue now, although I'm not sure what you mean by…