a method of compressing a cryptographic value . the method comprising the steps of : selecting a secret value ; performing a cryptographic operation on the secret value to generate the cryptographic value ; determining whether the cryptographic value satisfies the pre - determined criteria ; and repeating the sequence of steps starting at step until the cryptographic value satisfies the pre - determined criteria .