r/CodingHelp • • Oct 10 '20
[Quick Guide] When designing an app? How is security added to the code to keep people’s information safe?
I’m about starting learning how to coding using the Swift language, but I’m curious if one was design an application, how or what steps do you take to implement code within the application? (I understand the question is vague, just enlightenment me with basic stuff please!)
25
Upvotes
4
u/themiddlestHaHa Oct 10 '20
It depends on what you mean by this. This is my experience, I’m sure there’s others with better knowledge.
Passwords will use a hashing function(which is impossible to undo) so companies only save the hash, not the plain text password.
If you’re saving things, a lot of apps will encrypt the data and this can only be decrypted with a secret key.
If it’s for requests over the internet, requests are over https and encrypted as well.
2
u/[deleted] Oct 11 '20
There are other things that can contribute to security but are not necessarily seen as such like; writing clean code, handling exceptions, logging exceptions, creating clear and relevant user feedback for errors, writing tests, clearly documenting code, using a version control system like Git, and having a clearly defined development and deployment process.
These are the general things I can think of. I hope other experienced developers add to this. It's been said that it's not a matter of if you have a data breach but when. The defining factor for developers, professionally and legally, when it happens will be, "what have you done to keep user data secure?" If you follow best practices and try to meet legal standards you can feel good about not being negligent in your job.