IS Lab Pallier Update
This commit is contained in:
parent
672cb43d49
commit
7955070fa6
1 changed files with 9 additions and 3 deletions
|
@ -73,9 +73,15 @@ def main():
|
||||||
public_key, private_key = generate_keypair(bits=512)
|
public_key, private_key = generate_keypair(bits=512)
|
||||||
print("Keys generated successfully.\n")
|
print("Keys generated successfully.\n")
|
||||||
|
|
||||||
m1 = 15
|
# Get user input for the integers
|
||||||
m2 = 25
|
try:
|
||||||
print(f"Original integers: {m1} and {m2}")
|
m1 = int(input("Enter the first integer: "))
|
||||||
|
m2 = int(input("Enter the second integer: "))
|
||||||
|
except ValueError:
|
||||||
|
print("Invalid input. Please enter valid integers.")
|
||||||
|
return
|
||||||
|
|
||||||
|
print(f"\nOriginal integers: {m1} and {m2}")
|
||||||
print(f"Expected sum: {m1 + m2}\n")
|
print(f"Expected sum: {m1 + m2}\n")
|
||||||
|
|
||||||
print("Encrypting integers...")
|
print("Encrypting integers...")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue