I need some help with WSSE Header generations in iOS. The application it's written in Symfony2 which uses sha512 algorithm with 5000 iterations and encode_as_base64 as true. For the mobile app, I found this question for encoding the password: SHA512 with salt for iOS although it's only one iteration. Using a simple loop which includes the last one would suffice it?
We found the code for the Android generation of the WSSE Headers: http://obtao.com/blog/2013/09/how-to-use-wsse-in-android-app/ It is possible to do the same thing in iOS or should we find another way for authentication, like OAuth2?
For SHA512 try the following:
for WSSE headers check out https://github.com/laiso/CocoaWSSE
If you want to reproduce the same encryption as Symfony2 with the 5000 iterations, you can use the following code:
Don't forgot to import CommonDigest.h: