private String decryptProperty(String property) {
    // sample value: ${enc=aes256_hex, value=5248...303d}
    final String encrypted = property.substring(Encryptor.ENCRYPTED_PROPERTY_PREFIX.length(), property.indexOf('}'));
    return encryptionService.decrypt(encrypted, TextEncoding.BIN_HEX);
  }
A common base class for various encryptor implementations
ambari-server/src/main/java/org/apache/ambari/server/security/encryption/PropertiesEncryptor.java