Skip to content

Commit d7a0f0b

Browse files
committed
Update README.md
1 parent 0c445ba commit d7a0f0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Privacy Violation - Heap Inspection/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ StringBuffer password = new StringBuffer("SecurePassword");
2424

2525
🔒 Best Practices for Secure Coding
2626
1️⃣ Never store sensitive information in immutable strings 🚫
27+
2728
2️⃣ Understand how Garbage Collection (GC) works in your programming language 🧐
29+
2830
3️⃣ Use Secret Managers or Vaults to store sensitive information 🔐
31+
2932
4️⃣ Use prebuilt Secure Strings to handle sensitive information
33+
3034
Java: Use GuardedString (from Java's security libraries)
35+
3136
C#: Use SecureString to handle sensitive data securely 
37+
3238
5️⃣ When no prebuilt library exists, store passwords in char[] and overwrite the array after usage to ensure it doesn't linger in memory.

0 commit comments

Comments
 (0)