General | Example 1 | Example 2 | Example 3 (64-bit) | |
1. |
message_hash = hash(message)
Message hash cannot be larger than the modulus.
|
65 = hash("hello world") | 65 = hash("hello world") | 2793 = hash("sample text") |
2. | encrypt(message_hash) | encrypt(65) | encrypt(65) | encrypt(2793) |
3. | = message_hashε(mod μ) | = 6517(mod 77) | = 6517(mod 3233) | |
4. | = ciphertext | = 32 | = 2790 |