Originally Posted by mdot
For starters: The basic powMod encryption/decryption algorithm depends on the block size being smaller than the modulus. That is, in order to guarantee that you can recover the original from the encrypted message, the number of bits in the original message must be less than the number of bits in the modulus. (Note: that is properly less than
. It does not mean less than or equal to
If this is violated, it may "just happen" that you can get the same stuff back, but I wouldn't count on it.
As far as "strange
ways," well, I wouldn't hazard a guess without more information and, perhaps some code and a specific case instance of the file containing the test message.
As far as that goes, what do you mean by "Sometimes messages...never decrypt"? I am having a hard time trying to imagine the strangeness of things that "sometimes never" happen.
I am not giving up yet, but...
"The universe is not only stranger than we imagine,
it's stranger than we can
---Arthur C Clarke paraphrasing J.B.S. Haldane