It was some encoding issue. I encoded the byte before encryption using Base64 and decoded the byte to be decrypted using Base64. Then the problem was solved. (You can use either Base64 or Hex for encoding and decoding. Both work fine.)
"Simplicity is the ultimate sophistication..." ~Leonardo da Vinci~
Is this the real life? Is this just fantasy? Is this a tiny ad?