This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
*------------------------------------------------------------- | |
* Copyright (c) Ahmed Sayed. All rights reserved. | |
* Licensed under the MIT License. | |
* Title: SpringerBooks.py | |
* Date: 2020-05-01 11:33:21 | |
*------------------------------------------------------------- | |
Excute the following commands to install the dependencies before running the script: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
def modinv(a, m) : | |
a = a % m; | |
for x in range(1, m) : | |
if ((a * x) % m == 1) : | |
return x | |
return 1 | |
n = 126390312099294739294606157407778835887 | |
e = 65537 |