Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Charbelghanime authored Nov 27, 2023
1 parent 0b0c7c3 commit 80a3b46
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,10 @@ def encrypt():
encrypted_message = ' '.join(map(str, encrypted_blocks))
print(f"Encrypted message: {encrypted_message}")

# Verify the signature
is_signature_valid = verify_signature(message, public_key, signature)


return render_template('result.html', keysize=keysize, operation='Encrypt',
message=message, result=encrypted_message, original_length=len(message),
is_signature_valid=is_signature_valid)
message=message, result=encrypted_message, original_length=len(message))
except Exception as e:
print(f"Error during encryption: {e}")
return render_template('error.html', message='Error during encryption')
Expand Down

0 comments on commit 80a3b46

Please sign in to comment.