Sample code for 30+ languages & platforms
Objective-C

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Objective-C Downloads

Objective-C
#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);