Fully Homomorphic Encryption with TenSEAL in Python
Homomorphic encryption is letting us to make calculations on encrypted data. Algorithms could be homomorphic with respect to the multiplication or addition such as RSA or ElGamal. These are called partially homomorphic algorithms. Fully homomorphic encryption algorithms are homomorphic with respect to the both multiplication and addition. We explore the concept of fully homomorphic encryption (FHE) and its implementation in Python using the TenSEAL library. FHE is a powerful cryptographic technique that allows computations to be performed directly on encrypted data, without requiring decryption. This provides an unprecedented level of privacy and security for sensitive data processing. TenSEAL is a Python library that implements the CKKS scheme for FHE, enabling users to perform computations on encrypted data in a seamless manner. Throughout the video, we provide an overview of FHE, discuss the benefits and limitations of using TenSEAL, and demonstrate how to use the library to perform basic computations on encrypted data. By the end of the video, viewers should have a solid understanding of FHE and the practical aspects of using the TenSEAL library for secure computations on sensitive data. In this video, we are going to implement a use case for fully homomorphic encryption in python programming language with TenSEAL library. We will firstly encrypt the salary of an employee. Then, we will apply a 20% wage increase and 600 USD bonus to its encrypted salary while we are not knowing the private key or plain salary. Tutorial: https://sefiks.com/2021/12/01/homomorphic-facial-recognition-with-tenseal/ You may not need fully homomorphic encryption. If your requirement can be handled by partially homomorphic encryption, it would be much faster and have much smaller ciphertexts. Check out LightPHE: https://youtu.be/fh1Dgir5FXM If you like this video, you may like these videos: - Partially Homomorphic RSA in Python: https://youtu.be/PzKch8UQAmQ - Partially Homomorphic Paillier in Python: https://youtu.be/Yerhc9B2zjQ - Partially Homomorphic ElGamal in Python: https://youtu.be/d-gK211N28U - Partially Homomorphic Elliptic Curve ElGamal: https://youtu.be/6yN00ttpjSE Contents of this video: 00:00 - Introduction 01:41 - Use Case Definition 03:14 - Generating Private Public Key Pair 06:30 - Encrypting Salary Information 09:23 - Updating Enrypted Salary with Plain Wage Increase Rate and Bonus 12:06 - Data Owner Decrypts Updated Salary 13:22 - Updating Encrypted Salary with Encrypted Wage Increase and Bonus 16:48 - Data Owner Decrypts Updated Salary Please Subscribe! That's what keeps me going ► https://bit.ly/40NfIS7 Want more? Connect with me here: Blog: https://sefiks.com/ Twitter: https://twitter.com/serengil Threads: https://www.threads.net/@serengil Instagram: https://www.instagram.com/serengil Facebook: https://www.facebook.com/sefikscom Linkedin: https://www.linkedin.com/in/serengil/ If you do like my videos, you can support my effort with your financial contributions on - Patreon: https://www.patreon.com/serengil?source=youtube - GitHub Sponsors: https://github.com/sponsors/serengil - Buy Me a Coffee: https://buymeacoffee.com/serengil
Download
0 formatsNo download links available.