A storage device has a storage medium, a key generator and a controller.
The key generator generates an encryption/decryption key from selected
bits of program code within the storage device. The controller controls
access to the storage medium and applies the encryption/decryption key to
encrypt and decrypt data written to or read from the storage medium.