diff --git a/MillerRabin.py b/MillerRabin.py index 8f89609..60ce292 100644 --- a/MillerRabin.py +++ b/MillerRabin.py @@ -1,3 +1,6 @@ + +# Copyright (C) 2019, 2020 Hesham T. Banafa + #From: https://stackoverflow.com/questions/17298130/working-with-large-primes-in-python from random import randrange def is_prime(n, k=10): diff --git a/OAEP.py b/OAEP.py index ceadac5..5d1e749 100644 --- a/OAEP.py +++ b/OAEP.py @@ -1,3 +1,5 @@ +# Copyright (C) 2019, 2020 Hesham T. Banafa + #From: https://stackoverflow.com/questions/39964383/implementation-of-i2osp-and-os2ip def i2osp(x, xLen): diff --git a/encodetest.py b/encodetest.py index 970d22b..432cc6e 100644 --- a/encodetest.py +++ b/encodetest.py @@ -1,5 +1,7 @@ #!/usr/bin/python3 +# Copyright (C) 2019, 2020 Hesham T. Banafa + s = 'test message hello awdawd' print(s) s_number = int.from_bytes(s.encode('utf-8'),'little') diff --git a/rsa.py b/rsa.py index d534067..6362e93 100755 --- a/rsa.py +++ b/rsa.py @@ -1,5 +1,7 @@ #!/usr/bin/python3 +# Copyright (C) 2019, 2020 Hesham T. Banafa + #program to generate rsa key pair using methods in EE-305 # Hesham Banafa