The invention discloses electronic hardware with functions of encryption and data self-destruction and a data self-destruction method thereof. The hardware comprises a flash controller and an encryption / decryption self-destruction unit which is connected with the flash controller through an ATA or SATA interface, wherein the encryption / decryption self-destruction unit comprises an encryption / decryption module, a secret key management module, a parameter read / write module, a self-destruction order detection module, a self-destruction management module, a data channel cross switch module, a nonvolatile memory interface, an ATA or SATA equipment module and an ATA or SATA host machine module. The invention can flexibly add a data encryption self-destruction module under required occasions without influencing normal operation, erase the data without a host machine, select the data erasing speed and the data erasing content, increase the reliability for erasing the data, can not destroy memory medium after erasing the data, can protect the data at all levels, increase the flexibility of data confidentiality, and control the difficulty level of decryption algorithm.