Implement Hill Cipher & Find Inverse in Python π
Learn how to implement the Hill Cipher and find the inverse key in Python with practical examples and explanations.

Cryptography Explained
3.4K views β’ Mar 2, 2022

About this video
How to implement Hill Cipher in Python? How to find the inverse of the key in Python? In this video, we are going to answer these questions and we will see how encryption and decryption of Hill Cipher can be done in Python.
If you would like to learn more about Hill Cipher, its definition and a detailed example, check out this video:
https://youtu.be/CpzXvsKRipc
Detailed explanation of matrix inversion over a finite ring in Python:
https://youtu.be/fMLWxlJw9nI
You can find the cleaned up version of the code in the video in the link below:
https://github.com/sohrabganjian/Cryptography/blob/5089b9a9f1e37a499f625d7332cfa05215f029fd/Educational%20and%20Historical%20Cryptosystems/Hill%20Cipher%20Python.ipynb
If you know alternative methods for finding the inverse of a matrix over a finite field in Python or you would have implemented Hill Cipher differently, please share your ideas in the comment section. I would like to hear your thoughts or feedback.
Thank you for watching this video :)
00:00 - Preview and Introduction
00:44 - Setting up variables, plaintext and key
12:24 - Hill Cipher Encryption
20:15 - Finding the inverse of the Hill Cipher key in Python
28:08 - Hill Cipher Decryption
If you would like to learn more about Hill Cipher, its definition and a detailed example, check out this video:
https://youtu.be/CpzXvsKRipc
Detailed explanation of matrix inversion over a finite ring in Python:
https://youtu.be/fMLWxlJw9nI
You can find the cleaned up version of the code in the video in the link below:
https://github.com/sohrabganjian/Cryptography/blob/5089b9a9f1e37a499f625d7332cfa05215f029fd/Educational%20and%20Historical%20Cryptosystems/Hill%20Cipher%20Python.ipynb
If you know alternative methods for finding the inverse of a matrix over a finite field in Python or you would have implemented Hill Cipher differently, please share your ideas in the comment section. I would like to hear your thoughts or feedback.
Thank you for watching this video :)
00:00 - Preview and Introduction
00:44 - Setting up variables, plaintext and key
12:24 - Hill Cipher Encryption
20:15 - Finding the inverse of the Hill Cipher key in Python
28:08 - Hill Cipher Decryption
Video Information
Views
3.4K
Likes
45
Duration
37:01
Published
Mar 2, 2022
User Reviews
4.4
(3) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now