CryptoCalculator
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

Hovering or clicking on description fields will explain the formula and calculations.
DescriptionValueInputEdit InputGenerate ValueClear Field
[ max ]
[ p ]
[ q ]
[ n ]
[ phin ]
[ e ]
[ d ]
[ m ]
[ s ]
[ 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

Hovering or clicking on description fields will explain the formula and calculations.
DescriptionValueInputEdit InputGenerate ValueClear Field
[ max ]
[ p ]
[ g ]
[ x ]
[ y ]
[ k ]
[ r ]
[ inv-k ]
[ m ]
[ s ]
[ v ]
[ w ]


Checkout the original site with mostly functional formulas:

Visit Original Site