I'm building an application that takes in login credentials (username
and password
). I want to encrypt before sending the data to the server. I would really appreciate if someone can provide some insight on the most common method or best practice for password encryption in Swift.
If you really need to encrypt the credentials in Swift, you could use https://github.com/krzyzanowskim/CryptoSwift
But it would be best to just POST them to the server via https - that way, they will be encrypted/decrypted for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With