C
Chris-
I've been looking at the internal implementation of
FormsAuthentication's HashPasswordForStoringInConfigFile. I can see
that instead of using the format string {0:x2} (i.e. a hexadecimal
representation of the password, 2 bytes each), there is an internal
method called
internal static unsafe string ByteArrayToHexString(byte[] buf, int
iLen)
This seems to do the job of the format string I mentioned above, same
results are always returned, but probably slightly slower as the
calculations are done one level up. Is there any reason for this? Did
the guy/gal working for Microsoft doing the Forms Authentication
encryption in ASP.NET simply not realise the format string was in the
framework?!
Thanks
FormsAuthentication's HashPasswordForStoringInConfigFile. I can see
that instead of using the format string {0:x2} (i.e. a hexadecimal
representation of the password, 2 bytes each), there is an internal
method called
internal static unsafe string ByteArrayToHexString(byte[] buf, int
iLen)
This seems to do the job of the format string I mentioned above, same
results are always returned, but probably slightly slower as the
calculations are done one level up. Is there any reason for this? Did
the guy/gal working for Microsoft doing the Forms Authentication
encryption in ASP.NET simply not realise the format string was in the
framework?!
Thanks