Digital Signature Calculator
Digital signature calculators. This has some basic examples and steps for verifying signaures for both RSA Digital signature and Elgamal Digital signature examples.
RSA Signature System:
Tools to store values:
Public Keys: Value: n, Value: e
Private Keys: Value: d
Description | Value | Input | Edit Input | Generate Value | Clear Field |
---|---|---|---|---|---|
maximum set value | [ max ] | ||||
[P] value | [ p ] | ||||
[Q] value | [ q ] | ||||
[N] value | [ n ] | ||||
[φ(N)] Phi(n) | [ phin ] | ||||
[E] Value | [ e ] | ||||
[D] Value | [ d ] | ||||
[M] message to encode | [ m ] | ||||
[S] Signature Value | [ s ] | ||||
[VS] Verified Signature Value | [ vs ] |
Step Order:
- Choose 2 prime numbers for p and q
- Calculate n value: p * q = n
- Calculate φ(n) value: (p - 1) * (q - 1) = φ(n)
- Generate e using φ(n) value
- Public keys generated to send out: (n, e)
- Generate private key d value: de = 1 mod φ(n) : which can also be calculated as: e-1 mod φ(n) = d
- Sign message m and create signature using d: m d mod n = s
- Verify signature s with received message m: s e mod n = m 1
- Verified value should match the message value, if not, then there has been some tampering with the message
Elgamal Signature System:
Tools to store values:
Public Keys: Value: p, Value: g, Value: y
Private Keys: Value: x
Description | Value | Input | Edit Input | Generate Value | Clear Field |
---|---|---|---|---|---|
maximum set value | [ max ] | ||||
[P] value | [ p ] | ||||
[G] value | [ g ] | ||||
[X] value | [ x ] | ||||
[Y] value | [ y ] | ||||
[K] Value | [ k ] | ||||
[R] Value | [ r ] | ||||
[K-1] Value | [ inv-k ] | ||||
[M] message to encode | [ m ] | ||||
[S] Signature Value | [ s ] | ||||
[V] Verified Signature Value | [ v ] | ||||
[W] Verified Signature Value | [ w ] |