Online RSA key generation help


Settings Remark
Enter modulus (n) Modulus (n) is made public and is part of the public key and private key.

This means modulus (n) is used to encrypt messages (m) and is also used to decrypt ciphertexts (c).

Splitting the modulus into its original two prime numbers (this process is called factoring) is very difficult especially if the modulus is very large and the prime numbers are distant from each other.

If the RSA key size is 2048 bits we in fact mean the modulus (n) bitsize.

Enter modulus (n) or let this tool calculate this for you using the following formula:

n = p * q

Spaces, tabs and new line characters within the modulus value are all ignored.

The following encoding schemes are allowed:
  • Binary

    For example:

    111010110111001110000100010101110011000100110101100111
    001010101001110000101100011111000011111101101000010100
    101011110000111010001110110101110110011101000000110010
    100011010100001000110010000110110101000100010000010010
    101011010101010001110101001101100010010010011001010101
    010001110100111000101010010001010111100001000101001110
    100010010010110110001110011100001010001100101101100010
    010011001111101010010100110010011100001011011101110111
    110001100000011111110100111100111001001110011000011011
    00110000011001100010000101


  • Decimal

    For example:

    1233158194300295904825356061359260972427878853189919879
    6460194811260699735852507151510598189348269039060954613
    237535789340484865036460845975935167995418757


  • Hexadecimal

    Colon ":" and dash "-" separators within the hexadecimal number are all ignored.

    Example 1:

    00 eb 73 84 57 31 35 9c aa 70 b1 f0 fd a1 4a
    f0 e8 ed 76 74 0c a3 50 8c 86 d4 44 12 ad 54
    75 36 24 99 55 1d 38 a9 15 e1 14 e8 92 d8 e7
    0a 32 d8 93 3e a5 32 70 b7 77 c6 07 f4 f3 93
    98 6c c1 98 85


    Example 2:

    00-eb-73-84-57-31-35-9c-aa-70-b1-f0-fd-a1-4a-
    f0-e8-ed-76-74-0c-a3-50-8c-86-d4-44-12-ad-54-
    75-36-24-99-55-1d-38-a9-15-e1-14-e8-92-d8-e7-
    0a-32-d8-93-3e-a5-32-70-b7-77-c6-07-f4-f3-93-
    98-6c-c1-98-85


    Example 3:

    00:eb:73:84:57:31:35:9c:aa:70:b1:f0:fd:a1:4a:
    f0:e8:ed:76:74:0c:a3:50:8c:86:d4:44:12:ad:54:
    75:36:24:99:55:1d:38:a9:15:e1:14:e8:92:d8:e7:
    0a:32:d8:93:3e:a5:32:70:b7:77:c6:07:f4:f3:93:
    98:6c:c1:98:85


    Example 4:

    00eb73845731359caa70b1f0fda14a
    f0e8ed76740ca3508c86d44412ad54
    75362499551d38a915e114e892d8e7
    0a32d8933ea53270b777c607f4f393
    986cc19885


  • Base64

    Only digits [0-9], letters [a-zA-Z], "=" and "_" are allowed.

    For example:

    3hSuHNCJMSgd2nyFsXIl3exNPq3ADGZ8RKH1AjL7Ks9
    9bL7JYf5U4Kw9BOvmeos9C_fJ9mjtV61=JpavXimPY5