I have scanned a QR
Code image using ZXingWidget
lib, received a string as response.
Now I want to encrypt that string using lib-sodium
in iOS.
Any suggestion how to do string encryption in iOS using lib-sodium
library....
Thanks in advance...
As requested: Sample code on implementing PBKDF
Note, this is an example, not production code.
Very simple test, use a better salt and a better rounds count, possible using CCCalibratePBKDF.
If you are copying this code to use in a production app: Don't. This is just example code. Basically if one needs this code they should not be doing cryptography. Hire a domain expert, at a minimum have the code vetted by a domain expert.