Package com.openbravo.pos.util

Examples of com.openbravo.pos.util.AltEncrypter.decrypt()


    private boolean m_bTestMode;
   
   
    public PaymentGatewayCaixa (AppProperties props) {
        AltEncrypter cypher = new AltEncrypter("cypherkey");
        this.sCommerceSign = cypher.decrypt(props.getProperty("payment.commercesign").substring(6));
       
        this.m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
       
        //EUR, USD, GPB
        this.m_sCurrency = (Locale.getDefault().getCountry().isEmpty())
View Full Code Here


            String sDBUser = m_App.getProperties().getProperty("db.user");
            String sDBPassword = m_App.getProperties().getProperty("db.password");
            if (sDBUser != null && sDBPassword != null && sDBPassword.startsWith("crypt:")) {
                AltEncrypter cypher = new AltEncrypter("cypherkey" + sDBUser);
                sDBPassword = cypher.decrypt(sDBPassword.substring(6));
            }

            script.put("hostname", m_App.getProperties().getProperty("machine.hostname"));
            script.put("dbURL", m_App.getProperties().getProperty("db.URL"));
            script.put("dbUser", sDBUser);
View Full Code Here

                m_sERPUser = prop.getProperty("user");
                m_sERPPassword = prop.getProperty("password");       
                if (m_sERPUser != null && m_sERPPassword != null && m_sERPPassword.startsWith("crypt:")) {
                    // La clave esta encriptada.
                    AltEncrypter cypher = new AltEncrypter("key" + m_sERPUser);
                    m_sERPPassword = cypher.decrypt(m_sERPPassword.substring(6));
                }
                m_sERPPassword = getPasswordHash(m_sERPPassword);
                m_iERPId = prop.getProperty("id");
                m_iERPOrg = prop.getProperty("org");
                m_iERPPos = prop.getProperty("pos");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.