/// <summary> Returns the security hash based on IP for this user </summary> /// <param name="IP">IP Address for this user request</param> /// <returns>Security hash for comparison purposes or for encoding in the cookie</returns> /// <remarks>This is used to add another level of security on cookies coming in from a user request </remarks> public string Security_Hash(string IP) { return(SecurityInfo.DES_EncryptString(Given_Name + "sobekh" + Family_Name, IP.Replace(".", "").PadRight(8, '%').Substring(0, 8), Email.Length > 8 ? Email.Substring(0, 8) : Email.PadLeft(8, 'd'))); }