In my app there is a place where the user can enter in some sensitive information. I'm using a NSSecureTextField
for that.
However, NSSecureTextField
just uses a plain String
to store its contents. This poses an issue because I would like to destroy that String
instance, but that is impossible because strings are immutable.
When the user finishes typing his password, there would probably be 10+ instances of that password in memory.
Is there any way to somehow have a more secure method of entering text?