A sequence of numbers, letters, or symbols that serves as a password, for identification, or to unlock something.
example
Bitte geben Sie den vierstelligen Code ein, um Ihr Handy zu entsperren.
Please enter the four-digit code to unlock your phone.
Usage tips
Typical collocations
In the meaning of 'Passwort' (password), typical verbs are 'eingeben' (to enter), 'brauchen' (to need), 'vergessen' (to forget), or 'ändern' (to change). The length of the code is often mentioned, e.g. 'ein vierstelliger Code' (a four-digit code).
EXAMPLE
Ich habe den Code für mein Online-Banking vergessen.
I forgot the code for my online banking.
Typical collocations
When a secret code is meant, the typical verbs are 'knacken' (to crack), 'entschlüsseln' (to decode/decrypt), or 'verwenden' (to use). Adjectives like 'geheim' (secret) or 'verschlüsselt' (encrypted) are also common.
EXAMPLE
Die Agenten konnten den geheimen Code des Feindes knacken.
The agents were able to crack the enemy's secret code.
Register: technical language
This meaning of 'Code' is used almost exclusively in computer science and programming. Typical verbs here are 'schreiben' (to write), 'lesen' (to read), 'ausführen' (to execute), or 'debuggen' (to debug).
EXAMPLE
Der Entwickler schreibt sauberen und effizienten Code.
The developer writes clean and efficient code.
Typical collocations
In the sense of a code of conduct, 'Code' is often combined with adjectives like 'ethisch' (ethical) or 'moralisch' (moral). A common expression is 'sich an einen Code halten' (to follow a code).
EXAMPLE
In unserem Unternehmen gibt es einen strengen Code für den Umgang mit Kunden.
In our company, there is a strict code for dealing with customers.
Compare with
near_synonym
Code vs Regel
rule / period
'die Regel' and 'der Code' can both have to do with behavior in a group. A 'Regel' is usually clearly stated and directly says what you should do or are not allowed to do. In this meaning, 'der Code' refers more to a code of conduct: that is, a collection of rules or expectations that apply in a particular group. A code can also be unwritten, for example in a team or profession. 'Regel' sounds more concrete and individual, while 'Code' sounds more like a whole system of behavior.
Code
Im Verein gibt es einen klaren Code: Man hilft neuen Mitgliedern und bleibt fair.
In the club, there is a clear code: you help new members and stay fair.
Regel
Für das Spiel gibt es eine einfache Regel: Jeder wartet, bis er an der Reihe ist.
There is one simple rule for the game: everyone waits until it is their turn.