Saturday, October 07, 2006

Updates : SecurityHelper and ValidationHelper classes

I have enhanced the SecurityHelper and the ValidationHelper classes to support :

1. ValidationHelper class
The IsValidStateNames(), IsValidPhoneNO() , IsValidHPNO(), IsValidICNO(), IsValidPostalCode() are no longer limited to Malaysia context. For instance, to validate the phone number of US,

// true or false

in which the "(999)999-9999" is the input mask pattern that used to validate the US phone number format.

2. SecurityHelper class
The CompareValueToHash() method can now accept both string parameters of user input and hashed string. For instance,

string strPassword = SecurityHelper.GenerateHashInString("abc");
// true or false

Download Examples and Library here

No comments: