Refactoring
Fixed repeated xor decryption