Provision to choose passCode/hash validation #6385

```
if self.hash_key:
    # compute the hash and add it to data
elif self.pass_code:
    # Add passcode to the data
```