Base64.h
changeset 27 256370e8935a
parent 0 d84d25d6cdbb
     1.1 --- a/Base64.h	Sat Mar 08 21:04:41 2008 -0800
     1.2 +++ b/Base64.h	Sun May 03 10:13:31 2009 -0700
     1.3 @@ -9,15 +9,18 @@
     1.4  #import <Cocoa/Cocoa.h>
     1.5  
     1.6  
     1.7 -@interface NSData (Base64)
     1.8 +//NOTE: Using this requires linking against /usr/lib/libcrypto.dylib.
     1.9  
    1.10 -- (NSString *)base64String;
    1.11 -- (NSString *)base64StringWithNewlines:(BOOL)encodeWithNewlines;
    1.12  
    1.13 -- (NSData *)decodeBase64;
    1.14 -- (NSData *)decodeBase64WithNewLines:(BOOL)encodedWithNewlines;
    1.15 +@interface NSData (MYBase64)
    1.16  
    1.17 -- (NSString *)hexString;
    1.18 -- (NSString *)hexDump;
    1.19 +- (NSString *)my_base64String;
    1.20 +- (NSString *)my_base64StringWithNewlines:(BOOL)encodeWithNewlines;
    1.21 +
    1.22 +- (NSData *)my_decodeBase64;
    1.23 +- (NSData *)my_decodeBase64WithNewLines:(BOOL)encodedWithNewlines;
    1.24 +
    1.25 +- (NSString *)my_hexString;
    1.26 +- (NSString *)my_hexDump;
    1.27  
    1.28  @end