Objective-C
Objective-C
Example: SecureString.HashVal method
Demonstrates theHashVal method.
Chilkat Objective-C Downloads
#import <CkoSecureString.h>
#import <NSString.h>
BOOL success = NO;
CkoSecureString *str = [[CkoSecureString alloc] init];
str.MaintainHash = @"sha256";
[str Append: @"Hello World"];
NSString *encodedHash = [str HashVal: @"base64"];
NSLog(@"%@",encodedHash);