FROM : Greg Titus
DATE : Sun Nov 25 05:10:40 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.
>
Depending upon the purpose to which you are going to put this 16 bit
int, you could probably just take the low 16 bits of the return value
of the -hash method.
- Greg
DATE : Sun Nov 25 05:10:40 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.
>
Depending upon the purpose to which you are going to put this 16 bit
int, you could probably just take the low 16 bits of the return value
of the -hash method.
- Greg
| Related mails | Author | Date |
|---|---|---|
| Michael Swan | Nov 25, 04:22 | |
| David Symonds | Nov 25, 04:29 | |
| Greg Titus | Nov 25, 05:10 | |
| Steve Weller | Nov 25, 05:16 |






Cocoa mail archive

