encryption_type is now case insensitive.