This document introduces a new encryption algorithm called XS-DES, which improves the standard DES by enhancing security and speed, particularly in database applications. The authors focus on the key generation process, increasing the key size from 64 bits to 128 bits, and describe its use in an online examination system to safeguard sensitive information. The paper also discusses the importance of database security and outlines the challenges faced in protecting against insider attacks.