before decryption and simple mask-int