The Application of Fermat’s Little Theorem in Cryptography
DOI:
https://doi.org/10.61173/kezsrj76Keywords:
public key, private key, sharing prime, Fermat’s little theoryAbstract
This article aims to demonstrate the application of Fermat’s theorem in cryptography. With the development of technology, we have access to more and more information, and the necessity of encryption has also increased. As a mainstream public key cryptography algorithm, RSA encryption will demonstrate the application of Fermat’s theorem in RSA encryption in this article. To achieve this, I will introduce cryptography and Fermat’s theorem separately. Then, I will explain how the RSA encryption algorithm and Fermat’s theorem are applied to the RSA encryption algorithm. Finally, I will demonstrate it using Python. The theoretical proof and encryption process were elaborated on through empirical Python programming examples. Then, I will discuss whether RSA encryption is safe. Finally, I will give my conclusion.
References
[1] “Fermat’s Little Theorem.” From Wolfram MathWorld, mathworld.wolfram.com/FermatsLittleTheorem.html?utm_ c o n t e n t = b u ff e r 4 3 6 b c & u t m _ s o u r c e = b u ff e r & u t m _ medium=twitter&utm_campaign=Buffer. Accessed 29 Aug. 2023.
[2] Lenstra, Arjen K. Ron Was Wrong, Whit Is Right - IACR, eprint.iacr.org/2012/064.pdf. Accessed 28 Aug. 2023.
[3] Mohamed Barakat, Christian Eder, Timo Hanke. Rptu, agag-ederc.math.rptu.de/~ederc/download/Cryptography.pdf. Accessed 29 Aug. 2023.
[4] nohe, Patrick. “Google Chrome Adds Support for a Hybrid Post-Quantum Cryptographic Algorithm.” Hashed Out by The SSL StoreTM, 18 Aug. 2023, www.thesslstore.com/blog/is-itstill-safe-to-use-rsa-encryptio.
[5] Pournaki, M. R. Generalizations of Fermat’s Little Theorem via Group Theory, www.researchgate.net/profile/ M-R-Pournaki/publication/228636515_Generalizations_ of_Fermat%27s_Little_Theorem_via_Group_Theory/ links/09e4150d54990bda04000000/Generalizations-of-Fermats- Little-Theorem-via-Group-Theory.pdf?origin=publication_ detail. Accessed 29 Aug. 2023.
[6] Veisdal, Jørgen. “Fermat’s Little Theorem.” Medium, Cantor’s Paradise, 25 July 2019, www.cantorsparadise.com/ fermats-little-theorem-fbc88498d54e.
Downloads
Published
Issue
Section
License
Copyright (c) 2023 by the authors.

This work is licensed under a Creative Commons Attribution 4.0 International License.
