Encryption Algorithm & common IO