The paper presents a novel approach to enhance data security in text-based cryptosystems using Elliptic Curve Cryptography (ECC). It introduces a system with encryption and decryption modules that utilize variable-length text mapping techniques, leveraging ECC’s advantages over traditional cryptographic systems. The effectiveness of the proposed method is demonstrated through sample input and results, showing its capability for secure text communication.