Added ability to optionally generate a secret that contains an encryption-only secret