A method for generating a secure biometric code, comprising: receiving a first sample of biometric data of a user; acquiring a public code that is based on a previous sample of the biometric data of the user, wherein an unencrypted version of the public code does not include an amount of biometric data allowing the user to be identified from the unencrypted version of the public code; generating, based on the first sample of the biometric data of the user and the public code, a stable code for the user, wherein the stable code can be derived from the combination of the public code and an authentic sample of biometric data of the user and cannot be derived without both the public code and the authentic sample of biometric data of the user, wherein generating the stable code from the first sample of the biometric data of the user and the public code comprises: generating a plurality of randomly distributed feature vectors from the first sample of the biometric data of the user, wherein, based on the random distribution, each of the feature vectors is independent such that it cannot be derived from any of the other feature vectors; and identifying, from the plurality of feature vectors, a plurality of stable feature vectors based on information in the public code, wherein the stable code is based on a binarization of the plurality of stable feature vectors; hashing the stable code based on a one-way hashing algorithm to generate a repeatable code; generating a cryptographic key based on the stable code; discarding the first sample of the biometric data and the stable code; and using the repeatable code and the cryptographic key to perform one or more security operations. receiving a first sample of biometric data of a user; acquiring a public code that is based on a previous sample of the biometric data of the user, wherein an unencrypted version of the public code does not include an amount of biometric data allowing the user to be identified from the unencrypted version of the public code; generating, based on the first sample of the biometric data of the user and the public code, a stable code for the user, wherein the stable code can be derived from the combination of the public code and an authentic sample of biometric data of the user and cannot be derived without both the public code and the authentic sample of biometric data of the user, wherein generating the stable code from the first sample of the biometric data of the user and the public code comprises: generating a plurality of randomly distributed feature vectors from the first sample of the biometric data of the user, wherein, based on the random distribution, each of the feature vectors is independent such that it cannot be derived from any of the other feature vectors; and identifying, from the plurality of feature vectors, a plurality of stable feature vectors based on information in the public code, wherein the stable code is based on a binarization of the plurality of stable feature vectors; hashing the stable code based on a one-way hashing algorithm to generate a repeatable code; generating a cryptographic key based on the stable code; discarding the first sample of the biometric data and the stable code; and using the repeatable code and the cryptographic key to perform one or more security operations. generating a plurality of randomly distributed feature vectors from the first sample of the biometric data of the user, wherein, based on the random distribution, each of the feature vectors is independent such that it cannot be derived from any of the other feature vectors; and identifying, from the plurality of feature vectors, a plurality of stable feature vectors based on information in the public code, wherein the stable code is based on a binarization of the plurality of stable feature vectors; hashing the stable code based on a one-way hashing algorithm to generate a repeatable code; generating a cryptographic key based on the stable code; discarding the first sample of the biometric data and the stable code; and using the repeatable code and the cryptographic key to perform one or more security operations.