author | snej@snej-mbp.mtv.corp.google.com |
Tue Apr 07 11:13:25 2009 -0700 (2009-04-07) | |
changeset 23 | a910102a1c9d |
parent 0 | d84d25d6cdbb |
permissions | -rw-r--r-- |
jens@0 | 1 |
// |
jens@0 | 2 |
// Base64.h |
jens@0 | 3 |
// MYUtilities |
jens@0 | 4 |
// |
jens@0 | 5 |
// Created by Jens Alfke on 1/27/08. |
jens@0 | 6 |
// Copyright 2008 Jens Alfke. All rights reserved. |
jens@0 | 7 |
// |
jens@0 | 8 |
|
jens@0 | 9 |
#import <Cocoa/Cocoa.h> |
jens@0 | 10 |
|
jens@0 | 11 |
|
jens@1 | 12 |
//NOTE: Using this requires linking against /usr/lib/libcrypto.dylib. |
jens@0 | 13 |
|
jens@0 | 14 |
|
jens@1 | 15 |
@interface NSData (MYBase64) |
jens@0 | 16 |
|
jens@1 | 17 |
- (NSString *)my_base64String; |
jens@1 | 18 |
- (NSString *)my_base64StringWithNewlines:(BOOL)encodeWithNewlines; |
jens@1 | 19 |
|
jens@1 | 20 |
- (NSData *)my_decodeBase64; |
jens@1 | 21 |
- (NSData *)my_decodeBase64WithNewLines:(BOOL)encodedWithNewlines; |
jens@1 | 22 |
|
jens@1 | 23 |
- (NSString *)my_hexString; |
jens@1 | 24 |
- (NSString *)my_hexDump; |
jens@0 | 25 |
|
jens@0 | 26 |
@end |