Last active
October 3, 2023 05:35
-
-
Save whytarun/3ba91352b20b2852ee3ef23ff74a211c to your computer and use it in GitHub Desktop.
Secure Coding Practices
This file contains hidden or 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
# 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