boolean setPropertyEncrypted(String name, boolean encrypt) {
        final boolean encryptionWasChanged = name != null && properties.containsKey(name) && isEncrypted(name) != encrypt;
        if (encryptionWasChanged) {
            final String value = get(name);
            put(name, value, encrypt);
        }
        return encryptionWasChanged;
    }
Set the encryption status for the given property.

@param name
           The name of the property
@param encrypt
           True to encrypt the property, false to decrypt
@return {@code true} if the property's encryption status changed, otherwise {@code false}
xmppserver/src/main/java/org/jivesoftware/util/JiveProperties.java