Base 64 Encoding with URL and Filename Safe Alphabet Additions for iOS.
see RFC4648.
NSData *data = ...;
NSString *encodedString = [data qm_base64URLSafeEncodedStringWithOptions:0];
NSData *decodedData = [[NSData alloc] qm_initWithBase64URLSafeEncodedString:encodedString options:0];
NSString *string = @"...";
NSString *encodedString = [string qm_base64URLSafeEncodedString];
NSString *decodedString = [encodedString qm_base64URLSafeDecodedString];
iOS 7.0 or higher, ARC only
QMBase64URLSafe is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "QMBase64URLSafe"
QMBase64URLSafe is available under the MIT license. See the LICENSE file for more info.