Copy right headers
This commit is contained in:
parent
75547aca2b
commit
781cde431d
@ -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):
|
||||||
|
2
OAEP.py
2
OAEP.py
@ -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):
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user