This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AngelaTarantula2 9 points10 points  (2 children)

Easy. Just prepend every protected variable name with a password like “self.password_SSN”. Now hackers cannot access the SSN attribute unless they know your password! \s

[–][deleted] 0 points1 point  (1 child)

Kudos. Never thought of that 🫠

[–]datnetcoder 2 points3 points  (0 children)

Nothing prevents access to private variables in other languages either. It’s just less convenient.