###### Abstract  
Technology advancements have driven a boost in electronic commerce use in the present day due to an increase in demand processes, regardless of whether goods, products, services, or payments are being bought or sold. Various goods are purchased and sold online by merchants (\(\mathcal{M}\))s for large amounts of money. Nonetheless, during the transmission of information via electronic commerce, \(\mathcal{M}\)s' information may be compromised or attacked. In order to enhance the security of e-commerce transaction data, particularly sensitive \(\mathcal{M}\) information, we have devised a protocol that combines the Fernet (FER) algorithm with the EIGamal (ELG) algorithm. Additionally, we have integrated data leakage detection (DLD) technology to verify the integrity of keys, encryptions, and decryptions. The integration of these algorithms ensures that electronic-commerce transactions are both highly secure and efficiently processed. Our analysis of the protocol's security and performance indicates that it outperforms the algorithms used in previous studies, providing superior levels of security and performance. asymmetric cryptography; DLD; e-commerce transactions; Fernet; key identifier; merchant request; probability of data leakage; robust randomization +
Footnote †: journal:  
identity theft attack accounts for 33% of types of fraud experienced by merchants in 2023. Also, according to the report in [3], Recorded Future tracked 21 card checker services that utilized 2953 different merchants and 660 different merchant identification numbers (MIDs) for unauthorized card checks. The security of e-commerce plays a crucial role in preventing undesirable incidents like data leakage and financial losses. Safeguarding merchant information and securing transactions in e-commerce are of utmost importance [4]. The growing adoption of e-commerce has led to an increase in the number of people providing their personal information in various applications. To ensure the security of private data during e-commerce transactions, merchants must prioritize data security to safeguard personal transaction information from hackers. Standard security measures include authenticating merchant information, maintaining transaction data confidentiality, and ensuring data integrity [5]. The protection of information is the main objective of these security measures [6]. Since security attacks are linked to online shopping, encryption is used for e-commerce transactions, and using encryption from public and private encryption technologies, such as Rivest-Shamir-Adleman (RSA), Data Encryption Standard (DES), and TWOFISH, offers a framework that is both extremely safe and productive. However, some weaknesses in these algorithms that affect security transactions: the RSA algorithm is slow, the mathematical operations are large, and the TWOFISH algorithm is more complex in comparison to other old standards such as DES [7]. Personal information must be kept secure to minimize risks [8]. Some of the critical risks and attacks that information faces include camera and double swipe attacks, collusive attacks, dictionary attacks, imperonalization, pharming, smishing, snooping, unfair evaluation, and vishing. These attacks attempt to penetrate transaction information or penetrate personal information by vishing and stealing customers' personal information in e-commerce transaction applications [1]. In the realm of electronic commerce applications, transactional information is susceptible to various types of penetrations or attacks, whether through mobile phones or websites on the Internet. As a result, ensuring security becomes a fundamental and essential task to tackle. In this study, we propose employing encryption algorithms, namely the ElGamal algorithm and the Fernet algorithm, to address this security concern.