Hello Dittmer,
Thank you for your reply
You seem to assume that "sig.verify(signatureBytes).toString()" returns something useful; obviously, it does not.
well that is not included in the code above, but anyway the result is"true"
My question is basically why the signature length has not increased when I changed the key size from 1024 to 2048?
Wikipedia says"If the unlock/decryption key is the one published then the system serves as a signature verifier of documents locked by the owner of the private key. Although in this latter case, since encrypting the entire message is relatively expensive computationally, in practice
just a hash of the message is encrypted for signature verification purposes."
so my understanding is the message will be hashed to a fixed character length no matter how long the message is(which is 32 characters using MD5). Then this hash will get encrypted (RSA encryption) in my example. I have tried both key sizes and still got the same length of characters in the signature, I was expecting it to increase by using 2048 bit but it has not(the output is 10 characters long regardless of the size of the key) and this is what is puzzling me.
Can you please clarify what I am missing/misunderstanding?