Last active
January 2, 2018 21:17
-
-
Save igor-brishkoski/8b92910616ca3e5cdad4abc6f449ec56 to your computer and use it in GitHub Desktop.
Hardcoded secrets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
//Creating an instance of some service that your app relays on, | |
//Twitter, Facebook, Google, etc | |
//This service costs money to use | |
return new ExpensiveServiceThatMyAppUses.Builder() | |
.initWithKey("s3cr3t_k3y_f0r_hackz0rz"); // DON'T HARDCODE THE VALUE | |
.someConfig(true) | |
.build(); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment