Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Key size
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Number of bits in a key used by a cryptographic algorithm}} In [[cryptography]], '''key size''' or '''key length''' refers to the number of [[bit]]s in a [[key (cryptography)|key]] used by a [[Cryptography|cryptographic]] algorithm (such as a [[cipher]]). Key length defines the upper-bound on an algorithm's [[Security level|security]] (i.e. a logarithmic measure of the fastest known attack against an algorithm), because the security of all algorithms can be violated by [[brute-force attack]]s. Ideally, the lower-bound on an algorithm's security is by design equal to the key length (that is, the algorithm's design does not detract from the degree of security inherent in the key length). Most [[symmetric-key algorithm]]s are designed to have security equal to their key length. However, after design, a new attack might be discovered. For instance, [[Triple DES]] was designed to have a 168-bit key, but an attack of complexity 2<sup>112</sup> is now known (i.e. Triple DES now only has 112 bits of security, and of the 168 bits in the key the attack has rendered 56 'ineffective' towards security). Nevertheless, as long as the security (understood as "the amount of effort it would take to gain access") is sufficient for a particular application, then it does not matter if key length and security coincide. This is important for [[asymmetric-key algorithm]]s, because no such algorithm is known to satisfy this property; [[elliptic curve cryptography]] comes the closest with an effective security of roughly half its key length.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)