Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best method to encrypt password in Swift? [closed]

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.

like image 336
firefly Avatar asked Jan 10 '16 04:01

firefly


1 Answers

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.

like image 199
Jacek Lampart Avatar answered Oct 13 '22 10:10

Jacek Lampart