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.
Description
Value
[ max ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ p ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ q ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ n ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ phin ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ e ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ d ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ m ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ s ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ vs ]
Input
Edit Input
Generate Value
Clear Field

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.
Description
Value
[ max ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ p ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ g ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ x ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ y ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ k ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ r ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ inv-k ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ m ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ s ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ v ]
Input
Edit Input
Generate Value
Clear Field
Description
Value
[ w ]
Input
Edit Input
Generate Value
Clear Field


Checkout the original site with mostly functional formulas:

Visit Original Site