Skip navigation.
 
mlRe: How do I convert an NSString into a 16 bit int
FROM : Steve Weller
DATE : Sun Nov 25 05:16:13 2007

On Nov 24, 2007, at 7:22 PM, Michael Swan wrote:

> Does anyone have any suggestions for how to convert an NSString 
> into a 16 bit int? I have checked Google and can only find ways of 
> creating an MD5 hash that is much , much longer. I am looking for 
> something similar to an MD5 hash I just need it to be 16 bits not 
> 128. I am also hoping that I don;t have to become an expert in 
> cryptography to do this.
>
> Thanks,
> Mike


I needed a pseudo-random number generated from a string and used 
libcrypto to do do this. See section 11 here:

http://www.bagelturf.com/cocoa/rwok/rwok2/index.html

This is all Tiger and XCode 2.4, so things are likely different with 
the current toolset.

--
Blog:  http://www.bagelturf.com/  Photos: http://
bagelturf.smugmug.com/  Buy my book: http://www.bagelturf.com/
products/getyourheadaroundaperture/

Related mailsAuthorDate
mlHow do I convert an NSString into a 16 bit int Michael Swan Nov 25, 04:22
mlRe: How do I convert an NSString into a 16 bit int David Symonds Nov 25, 04:29
mlRe: How do I convert an NSString into a 16 bit int Greg Titus Nov 25, 05:10
mlRe: How do I convert an NSString into a 16 bit int Steve Weller Nov 25, 05:16