fix(18): use encrypted property to detect https