Hawkynt

Rabin

Rabin public key cryptosystem based on quadratic residues modulo composite numbers. Security equivalent to integer factorization. Each ciphertext decrypts to four possible plaintexts requiring disambiguation.

Properties

Property Value
Category Asymmetric Ciphers
Sub-category Public Key Cryptosystem
Security status πŸŽ“ Educational Only
Complexity Advanced
Inventor Michael O. Rabin
Year 1979
Origin πŸ‡ΊπŸ‡Έ United States
Source algorithms/asymmetric/rabin.js

Parameters

Parameter Supported values
Key sizes 1024 bytes (8192 bits); 2048 bytes (16384 bits)

Security

Status: πŸŽ“ Educational Only

No vulnerabilities are recorded for this implementation.

Documentation

References

Test vectors

2 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 β€” Rabin Round-trip Test - Crypto++ Implementation Pattern

Field Value
key 0400
input 48656c6c6f20576f726c64
expected 48656c6c6f20576f726c64

Vector 2 β€” Rabin-2048 round-trip

Field Value
key 0800
input 546865207365636f6e64206b65792073697a65
expected 546865207365636f6e64206b65792073697a65

← All algorithms