Exemplo n.º 1
0
    //Password encryption
    public static string Password_Encrypt(string PASSWORD)
    {
        //Initialize Logger
        log4net.Config.XmlConfigurator.Configure();
        //Initialize Logger

        string response_value = "";

        try
        {
            string sPassKey         = objDb.PassKeyValue;
            string sCryptedPassword = objDb.CreatePasswordHash(PASSWORD);
            response_value = sCryptedPassword;
            //return response_value;
        }
        catch (Exception ex)
        {
            logger.Error("Common.cs/Password_Encrypt: " + ex.Message.ToString());
            //return "Error: " + ex.Message.ToString();
        }
        return(response_value);
    }