updated makeAppSecretProof to be dependency free