Terminology Index

Glossary

2953 terms

Open concept maps
H
32

Homemade Cryptography

Inventing your own cryptographic algorithm or protocol instead of using established, vetted ones, a serious anti-pattern, since custom crypto almost always contains subtle, exploitable flaws that peer-reviewed standards have eliminated.

Cryptography is extraordinarily hard to get right, and the security community's standard advice is 'don't roll your own.' Homemade cryptography, a custom cipher, hash, or protocol, lacks the years of expert scrutiny that vetted algorithms have survived, and it typically harbors weaknesses an attacker can exploit even when it looks fine to its author. Secure practice uses well-established, peer-reviewed primitives and implementations rather than inventing new ones.

Introduced in: Cryptography Essentials

Examples

  • Writing a custom 'encryption' scheme that turns out trivially breakable.
  • Choosing a vetted standard algorithm instead of an invented one.
  • Recognizing homemade crypto as a red flag during a review.