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");
24
24
25
25
🔒 Best Practices for Secure Coding
26
26
1️⃣ Never store sensitive information in immutable strings 🚫
27
+
27
28
2️⃣ Understand how Garbage Collection (GC) works in your programming language 🧐
29
+
28
30
3️⃣ Use Secret Managers or Vaults to store sensitive information 🔐
31
+
29
32
4️⃣ Use prebuilt Secure Strings to handle sensitive information
33
+
30
34
Java: Use GuardedString (from Java's security libraries)
35
+
31
36
C#: Use SecureString to handle sensitive data securely
37
+
32
38
5️⃣ 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