开发者

How to base64url Encode Strings in Cocoa Touch

开发者 https://www.devze.com 2023-01-11 06:33 出处:网络
Is there a library function/method/cla开发者_Python百科ss in Cocoa Touch for base64url encoding strings?While there isn\'t a standard way to do this with the Apple frameworks, you should certainly che

Is there a library function/method/cla开发者_Python百科ss in Cocoa Touch for base64url encoding strings?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消