And in VFP ....? :-) John Weller 01380 723235 07976 393631
> -----Original Message----- > From: ProfoxTech [mailto:[email protected]] On Behalf Of Ed > Leafe > Sent: 14 March 2013 16:10 > To: [email protected] > Subject: Re: Password Security > > On Mar 14, 2013, at 9:03 AM, Stephen Russell <[email protected]> > wrote: > > >> In Python it's simple: > >> > >> import os > >> salt = os.urandom(24) > > And in C#, it's... well... > > > using System.Security.Cryptography;...RandomNumberGenerator rng = > new > > RNGCryptoServiceProvider();byte[] tokenData = new byte[32]; > > rng.GetBytes(tokenData); string token = > > Convert.ToBase64String(tokenData); > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

