A method, system on a chip, and computer system for generating more robust
keys which utilize data occupying relatively small die areas is
disclosed. Embodiments provide a convenient and effective mechanism for
generating a key for use in securing data on a portable electronic
device, where the key is generated from repurposed data and a relatively
small amount. A multi-stage encryption algorithm may be performed to
generate the key, where the first stage may include encrypting the secure
data, and the second stage may include encrypting the result of a logical
operation on the encrypted secure data with a unique identifier of the
portable electronic device. A secret key may be used as the encryption
key for each stage. The result of the second encryption stage may include
the generated key which may be used to perform subsequent operations on
the portable electronic device.