Is there a library function/method/class in Cocoa Touch for base64url encoding strings?
Is there a library function/method/class in Cocoa Touch for base64url encoding strings?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
While there isn’t a standard way to do this with the Apple frameworks, you should certainly check out CocoaDev’s entry and discussion on the topic: BaseSixtyFour. They have plenty of ways to work this out, and the last comment there doesn’t require libcrypto, or any external frameworks (which, on iOS, is a good start). It’s definitely worth a look.
Update: Or even better, check out Base64 encoding options on Mac and iPhone on CocoaWithLove, as it includes excellent source code.