Eksempler
What a 2048-bit pair looks like
Du skriver inn
- nøkkelstørrelse
- 2048
Du får
- offentlig nøkkel
- PEM block starting with BEGIN PUBLIC KEY, 294 bytes of key data, 9 lines
- privat nøkkel
- PEM block starting with BEGIN PRIVATE KEY, about 1,200 bytes of key data
- fingeravtrykk
- SHA-256: followed by 44 Base64 characters (52 characters in all)
- maksimal meldingsstørrelse i byte
- 190
Each run gives a different pair, so the exact letters change. The sizes and shapes above came from a real run of the tool's code, and the private key length can vary by a few bytes.
Kjørt med verktøyets egen kode.
The message size limit counts bytes, not letters
Du skriver inn
- nøkkelstørrelse
- 2048
- meldinger
- 190 letters 'a'; 191 letters 'a'; 96 letters 'é'
Du får
- 190 tegn
- accepted
- 191 tegn
- refused: at most 190 UTF-8 bytes
- 96 tegn é
- refused: 96 x 2 = 192 bytes
The letter é takes two bytes in UTF-8, so 96 of them are already over the limit. With a 3072-bit key the same rule allows 318 bytes. Both figures follow from RSA-OAEP with SHA-256: key bytes minus 66.
Kjørt med verktøyets egen kode.
The same message gives a new ciphertext each time
Du skriver inn
- nøkkelstørrelse
- 2048
- melding
- Hello
Du får
- chiffertekstlengde i Base64
- 344
- chiffertekst i byte
- 256
- gir to krypteringer samme tekst
- nei
- dekryptert tekst
- Hello
OAEP padding adds random data, so two encryptions of Hello differ but both decrypt to Hello. At 3072 bits the ciphertext is 384 bytes, which is 512 Base64 characters.
Kjørt med verktøyets egen kode.
Decrypting with the wrong private key
Du skriver inn
- chiffertekst fra
- key pair one
- brukt privatnøkkel
- key pair two
Du får
- resultat
- an error message and no text
Only the matching private key can open the ciphertext. A different key makes the browser refuse the decryption, and the page shows an error rather than wrong text. The exact wording of the error depends on the browser.
Kjørt med verktøyets egen kode.