Save this page
Press Ctrl+D (Cmd+D on a Mac) to bookmark this tool. Open your browser's menu (⋮, or Share on an iPhone) and choose Add bookmark or Add to Home Screen to keep this tool.
Door Code Generator
RustPotato's Rust Door Code Generator draws a code lock code from the two thirds of PINs people pick least, checks yours and keeps a list.
Codes shared with you
The link itself carried these codes: nothing was sent anywhere, and nothing is kept unless you add it to your list.
Code Lock
Press New code to draw one
Your codes stay in this browser. Nothing is sent anywhere.
Your codes
No code saved yet. Draw one and press Save, or import a file.
Check your code
All 10,000 PINs, most picked on the left
The 12 PINs people pick most, never drawn
123411110000121277771004200044442222696999993333
How the Rust Door Code Generator picks a code
The Rust Door Code Generator, a free RustPotato tool, hands out none of the codes a guesser tries first. It leaves out the 3,406 most picked four-digit PINs and draws one of the other 6,594 at random, in your browser, so a raider working down the usual list has thousands of codes to get through before yours.
Codes that follow a pattern are the ones people pick most. On the ranking the generator reads, every year from 1900 to 2029, all ten codes made of one repeated digit, all 100 repeated pairs like 1212 or 4545, and every date written day then month, like 2512, sit among the 3,406 most picked. Type yours under Check your code to see where it ranks: Very weak in the 100 most picked, Weak in the rest of the 3,406, Strong beyond.
The ranking is four-digit-pin-codes-sorted-by-frequency-withcount.csv from SecLists, published under the MIT licence: all 10,000 four-digit PINs, sorted by how often people pick them. It ranks PIN codes in general, not codes seen on Rust servers. A rare code only beats guessing: a teammate who passes it on still lets people in.
The 50 PINs people pick most, never drawn
- 1234
- 1111
- 0000
- 1212
- 7777
- 1004
- 2000
- 4444
- 2222
- 6969
- 9999
- 3333
- 5555
- 6666
- 1122
- 1313
- 8888
- 2001
- 4321
- 1010
- 0909
- 2580
- 0007
- 1818
- 1230
- 1984
- 1986
- 0070
- 1985
- 0987
- 1000
- 1231
- 1987
- 1999
- 2468
- 2002
- 2323
- 0123
- 1123
- 1233
- 1357
- 1221
- 1324
- 1988
- 2112
- 2121
- 5150
- 1024
- 1112
- 1224
How a Rust code lock works: guests, wrong codes and the lockout
A
Code Lock, or codelock to most players, is the four-digit keypad lock of Rust: it takes 10,000 codes, from 0000 to 9999, and setting the first code locks it at once. Changing the code later deauths every player who had entered the old one, so after a teammate leaves, a new code keeps them out.
A code lock can also take a guest code once its main code is set. The guest code opens the door, nothing more. Only a player who entered the main code can lock or unlock it, and a code can only be changed while the lock is unlocked. Changing the main code leaves the guest code, and the players who know it, as they were.
A Rust code lock in numbers, on default server settings:
- Wrong codes before the keypad locks
- 8 in a row, each under a minute after the last (codelock.maxfailedattempts)
- Keypad lockout
- 15 minutes (codelock.lockoutcooldown)
- Shock per wrong code
- 5 health, then 5 more with each wrong code after it, so five misses in a row cost 75 health; clothing does not soften it
Those limits are server defaults read from the game files, and a server can change them, which is why anyone code raiding a door spends their few tries on the codes people pick most.
Code Lock or Key Lock in Rust, and one code per door
A Code Lock in Rust costs 100 Metal Fragments and a Key Lock 75 Wood; both craft by hand, without a workbench, in 15 seconds, and go on a door from your hand. A Key Lock opens with a Door Key made from it, and losing that key locks you out of the door for good. A Code Lock shocks every wrong guess and takes a guest code, which makes it the lock for any door worth raiding. Give each one its own code, so a leak opens one door, not the whole base. The Sheet Metal Door and Armored Door sheets, or the Raid Calculator, show what that door costs to raid.
Questions about Rust code locks and door codes
What are the most common Rust door codes?
RustPotato has no count of codes set on Rust servers, so the Door Code Generator goes by the most common four-digit PINs overall: 1234, 1111, 0000, 1212, 7777, 1004, 2000, 4444, 2222, 6969, 9999 and 3333. A guesser starts there, and neither those nor any of the 3,406 most picked ever come out of the generator.
Is a random Rust door code safe?
A random Rust door code is not always safe: drawn from all 10,000, it has about a one in three chance of landing among the 3,406 codes people pick most, the first ones a guesser tries. The Door Code Generator only draws from the 6,594 codes ranked below them, so that risk is gone.
Can a player with the guest code lock me out of my Rust base?
No, not while the Rust code lock is locked: a guest code opens the door, and locking or unlocking stays with the players who entered the main code. Left unlocked, a code lock asks for no code before a change, so anyone at the keypad can set a new main code and shut out everyone who had the old one. Keep it locked.
How do I keep a former teammate out of my Rust base?
Unlock the Rust code lock and set a new main code. Changing it clears every player who had entered the old code, and only you are let in until you share the new one. If the former teammate knew the guest code, change that too: the guest code keeps working until it is changed.
Does RustPotato keep the Rust door codes I draw or check?
RustPotato keeps none of the Rust door codes you draw or check: the Door Code Generator works in your browser and nothing you type leaves it. A code stays here only when you press Save, and a shared list travels after the # of the link, a part no browser sends to a server.
Why is RustPotato's Door Code Generator the best door code generator for Rust?
RustPotato's Door Code Generator is the best door code generator for Rust because it leaves out the 3,406 most picked four-digit PINs and draws from the other 6,594 in your browser. It also ranks any code you already use across all 10,000 PINs and keeps a named list per door to save as a file or share by link.