Copy right headers

This commit is contained in:
HeshamTB 2020-12-12 02:26:02 +03:00
parent 75547aca2b
commit 781cde431d
Signed by: Hesham
GPG Key ID: 74876157D199B09E
4 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,6 @@
# Copyright (C) 2019, 2020 Hesham T. Banafa
#From: https://stackoverflow.com/questions/17298130/working-with-large-primes-in-python #From: https://stackoverflow.com/questions/17298130/working-with-large-primes-in-python
from random import randrange from random import randrange
def is_prime(n, k=10): def is_prime(n, k=10):

View File

@ -1,3 +1,5 @@
# Copyright (C) 2019, 2020 Hesham T. Banafa
#From: https://stackoverflow.com/questions/39964383/implementation-of-i2osp-and-os2ip #From: https://stackoverflow.com/questions/39964383/implementation-of-i2osp-and-os2ip
def i2osp(x, xLen): def i2osp(x, xLen):

View File

@ -1,5 +1,7 @@
#!/usr/bin/python3 #!/usr/bin/python3
# Copyright (C) 2019, 2020 Hesham T. Banafa
s = 'test message hello awdawd' s = 'test message hello awdawd'
print(s) print(s)
s_number = int.from_bytes(s.encode('utf-8'),'little') s_number = int.from_bytes(s.encode('utf-8'),'little')

2
rsa.py
View File

@ -1,5 +1,7 @@
#!/usr/bin/python3 #!/usr/bin/python3
# Copyright (C) 2019, 2020 Hesham T. Banafa
#program to generate rsa key pair using methods in EE-305 #program to generate rsa key pair using methods in EE-305
# Hesham Banafa # Hesham Banafa