views:

52

answers:

1

Is there a library function/method/class in Cocoa Touch for base64url encoding strings?

+5  A: 

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.

itaiferber
Excellent sources, that'll do it! Thanks.
DwardoX