yeetmemes / cyberedegree

Eduonix cyber edegree
1 stars 0 forks source link

Encryption Fundamentals Signature generation using Hash algorithms #5

Closed yeetmemes closed 1 year ago

yeetmemes commented 1 year ago

Using the following algorithms, generate a valid signature for the message 2.

Hash function: (x+3) mod 10

Encryption: RSA with the following parameters

Private key: 11

Public key: 5

Modulus: 14

yeetmemes commented 1 year ago

To generate a valid signature for message 2 using the given hash function and encryption algorithm, we need to follow these steps: Hash the message using the given hash function: Hash function: (x+3) mod 10 Message 2: (2+3) mod 10 = 5 Hashed message: 5 Generate the signature using the RSA algorithm: Public key: 5 Modulus: 14 Signature = (hashed message ^ private key) mod modulus Signature = (5 ^ 11) mod 14 Signature = 13 Therefore, the valid signature for message 2 is 13.