File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Privacy Violation - Heap Inspection Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,15 @@ StringBuffer password = new StringBuffer("SecurePassword");
2424
2525🔒 Best Practices for Secure Coding
26261️⃣ Never store sensitive information in immutable strings 🚫
27+
27282️⃣ Understand how Garbage Collection (GC) works in your programming language 🧐
29+
28303️⃣ Use Secret Managers or Vaults to store sensitive information 🔐
31+
29324️⃣ Use prebuilt Secure Strings to handle sensitive information
33+
3034Java: Use GuardedString (from Java's security libraries)
35+
3136C#: Use SecureString to handle sensitive data securely
37+
32385️⃣ When no prebuilt library exists, store passwords in char[ ] and overwrite the array after usage to ensure it doesn't linger in memory.
You can’t perform that action at this time.
0 commit comments