Skip to content

Instantly share code, notes, and snippets.

@whytarun
Last active October 3, 2023 05:35
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 whytarun/3ba91352b20b2852ee3ef23ff74a211c to your computer and use it in GitHub Desktop.
Save whytarun/3ba91352b20b2852ee3ef23ff74a211c to your computer and use it in GitHub Desktop.
Secure Coding Practices
# Bad practice: Hardcoded UserName and Password
String username ="admin"
String password ="p@ssw0rd"
# Good practice: Retrive credential from a secure source
String username = CredentialManager.getUsername()
String password =CredentialManager.getPassword()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment