jens@0: // jens@0: // Base64.h jens@0: // MYUtilities jens@0: // jens@0: // Created by Jens Alfke on 1/27/08. jens@0: // Copyright 2008 Jens Alfke. All rights reserved. jens@0: // jens@0: jens@0: #import jens@0: jens@0: jens@1: //NOTE: Using this requires linking against /usr/lib/libcrypto.dylib. jens@0: jens@0: jens@1: @interface NSData (MYBase64) jens@0: jens@1: - (NSString *)my_base64String; jens@1: - (NSString *)my_base64StringWithNewlines:(BOOL)encodeWithNewlines; jens@1: jens@1: - (NSData *)my_decodeBase64; jens@1: - (NSData *)my_decodeBase64WithNewLines:(BOOL)encodedWithNewlines; jens@1: jens@1: - (NSString *)my_hexString; jens@1: - (NSString *)my_hexDump; jens@0: jens@0: @end