https://github.com/simonskodt/secu1-elgamal
Mandatory handin 1 in Security 1. The goal is to implement the ElGamal public key method.
https://github.com/simonskodt/secu1-elgamal
elgamal encryption-decryption
Last synced: 8 months ago
JSON representation
Mandatory handin 1 in Security 1. The goal is to implement the ElGamal public key method.
- Host: GitHub
- URL: https://github.com/simonskodt/secu1-elgamal
- Owner: simonskodt
- License: mit
- Created: 2022-09-23T11:23:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-03T07:54:30.000Z (about 3 years ago)
- Last Synced: 2025-01-04T11:12:17.202Z (9 months ago)
- Topics: elgamal, encryption-decryption
- Language: C#
- Homepage:
- Size: 127 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ElGamal public key method
**Mandatory exercise 1 in Security 1. The goal is to implement the ElGamal public key method. The assignment is the following:**
- [x] You are Alice and want to send 2000 kr. to Bob through a confidential message. You decide to use the ElGamal public key method. The keying material you should use to send the message to Bob is as follows:
* The shared base g=666
* The shared prime p=6661
* Bob’s public key PK = gx mod p =2227Send the message ’2000’ to Bob.
- [x] You are now Eve and intercept Alice’s encrypted message. Find Bob’s private key and reconstruct Alice’s message.
- [x] You are now Mallory and intercept Alice’s encrypted message. However, you run on a constrained device and are unable to find Bob’s private key. Modify Alice’s encrypted message so that when Bob decrypts it, he will get the message ’6000’.