src/com/vehiclerental/dataLayer/entities/User.java
/**
     * Decrypts the previously encrypted properties of the entity
     */
Decrypts the previously encrypted properties of the entity
Decrypts the previously encrypted properties of the entity
public void decrypt() {
        try {
            this.phoneNumber = CryptoUtils.decrypt(phoneNumber);
            this.hashedPassword = CryptoUtils.decrypt(hashedPassword);
            this.address_street = CryptoUtils.decrypt(address_street);
            this.address_city = CryptoUtils.decrypt(address_city);
            this.address_postalCode = CryptoUtils.decrypt(address_postalCode);
            this.address_country = CryptoUtils.decrypt(address_country);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
public void decrypt ( ) { try { this . phoneNumber = CryptoUtils . decrypt ( phoneNumber ) ; this . hashedPassword = CryptoUtils . decrypt ( hashedPassword ) ; this . address_street = CryptoUtils . decrypt ( address_street ) ; this . address_city = CryptoUtils . decrypt ( address_city ) ; this . address_postalCode = CryptoUtils . decrypt ( address_postalCode ) ; this . address_country = CryptoUtils . decrypt ( address_country ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } }
Decrypts the previously encrypted properties of the entity
Decrypts the previously encrypted properties of the entity
//Display error if encryption failed