The codes appear to be hard-coded and don't change from what I've seen. so if you are save scumming anyway:
save the game
go hire the 4 mercenaries with the techie trait (Aike Hayashi, Dexter Colt, Doyle Bekker, and Samuel Spartan)
make them your followers
go hack the door and write down the number
restore the game
go to the door and use the number you wrote down.