If you do not know a safe's code, use explosives.
Sticky bombs are recommended for safes and security doors because they are quieter and do not destroy fragile valuables; the page also lists grenades, propane tanks, and rocket launchers as options.
Related tips
Story & Heists
Avoid dye-pack losses before getting the jammer
Story spoiler. Open the tip to read it.
Medium13 sources
Story & Heists
Rob bank vaults after the Chapter 4 tutorial
Story spoiler. Open the tip to read it.
Hard9 sources
Story & Heists
Rob five bank vaults for “Maximum Withdrawal”
Story spoiler. Open the tip to read it.
Hard9 sources
Story & Heists
Complete all 15 Target Decks for 100% completion
After Veteran Hunted, Bret texts 15 Target Decks one at a time; hand in the final animal on a deck to receive the next text.
Medium8 sources