encryption/decrytion with error checking implemented