RustPotato
EN

Language

  • EN
  • PT
  • ES
  • FR
  • DE
  • PL
  • TR
  • JA
  • RU
  • ZH
  • UA
  • IT
  • CS
  • KO
  • SV
  • NL
  • DA
  • AR
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.

All 10,000 PINs, most picked on the left

3,406 most picked, never drawn 6,594 least picked, every new code comes from here
Ranking: four-digit-pin-codes-sorted-by-frequency-withcount.csv from SecLists, MIT licence.

The 12 PINs people pick most, never drawn

  1. 1234
  2. 1111
  3. 0000
  4. 1212
  5. 7777
  6. 1004
  7. 2000
  8. 4444
  9. 2222
  10. 6969
  11. 9999
  12. 3333

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
  1. 1234
  2. 1111
  3. 0000
  4. 1212
  5. 7777
  6. 1004
  7. 2000
  8. 4444
  9. 2222
  10. 6969
  11. 9999
  12. 3333
  13. 5555
  14. 6666
  15. 1122
  16. 1313
  17. 8888
  18. 2001
  19. 4321
  20. 1010
  21. 0909
  22. 2580
  23. 0007
  24. 1818
  25. 1230
  26. 1984
  27. 1986
  28. 0070
  29. 1985
  30. 0987
  31. 1000
  32. 1231
  33. 1987
  34. 1999
  35. 2468
  36. 2002
  37. 2323
  38. 0123
  39. 1123
  40. 1233
  41. 1357
  42. 1221
  43. 1324
  44. 1988
  45. 2112
  46. 2121
  47. 5150
  48. 1024
  49. 1112
  50. 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.