This paper presents a new method for encrypting digital data using a symmetric key and the XOR operator, focusing on text cryptography. The proposed algorithm employs a 128-bit key to enhance security and execution speed for data transmission in unsecure environments. Results indicate that this method outperforms existing encryption techniques in terms of performance and security.