Skip to content

Instantly share code, notes, and snippets.

@igor-brishkoski
Last active January 2, 2018 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igor-brishkoski/8b92910616ca3e5cdad4abc6f449ec56 to your computer and use it in GitHub Desktop.
Save igor-brishkoski/8b92910616ca3e5cdad4abc6f449ec56 to your computer and use it in GitHub Desktop.
Hardcoded secrets
...
//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