Rust Door Code Generator
Codes are made in your browser and never leave it. Each one skips the codes and patterns people try first: common codes, repeats, runs like 1234, years and dates.
Your code
Guest code
Opens and closes the door, but can't unlock the lock or change the code.
Check a code
Nobody brute-forces a lock: they try the common codes first. In one study of 3.4 million four-digit codes, the 20 most common covered 26.8% of them.
How the code lock works
| コード | 4 digits - 10,000 possible codes |
| Wrong code | An electric shock: 5 damage, then 10, 15 and so on while you keep guessing |
| Too many wrong codes | 8 wrong tries locks that player out for 15 minutes (since December 2021) |
| Guest code | A second code that opens and closes the door but can't unlock the lock, change the code or remove it |
| 製作 | 100 metal fragments, no workbench needed |
The most common codes are from Nick Berry's 2012 study of leaked four-digit codes, not from Rust players - but people pick door codes the same way. Checked 2026-11-13. Sources: Facepunch Rust wiki - Code Lock; Facepunch - Devblog 97 (wrong-code shock); Facepunch changelist, December 2021 (8 tries, then 15-minute lockout); DataGenetics - PIN number analysis (Nick Berry, 2012).
A Rust door code generator: make a random code lock code that avoids the codes and patterns people guess first, check how guessable your current code is, and make a separate guest code.