• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I convert an NSString into a 16 bit int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I convert an NSString into a 16 bit int


  • Subject: Re: How do I convert an NSString into a 16 bit int
  • From: Steve Weller <email@hidden>
  • Date: Sat, 24 Nov 2007 20:16:13 -0800


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/



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How do I convert an NSString into a 16 bit int (From: Michael Swan <email@hidden>)

  • Prev by Date: Re: How do I convert an NSString into a 16 bit int
  • Next by Date: Re: NSObject's bind:toObject:forKeyPath:options
  • Previous by thread: Re: How do I convert an NSString into a 16 bit int
  • Next by thread: Preference pane deployment
  • Index(es):
    • Date
    • Thread