摘要 |
The present invention relates to the communications field, and disclosed are a key transformation method, apparatus, and terminal. The method comprises: obtaining a target matrix in a matrix library, the target matrix being an invertible matrix; transforming, after using an initial key to encrypt a target file, the initial key according to the target matrix, and generating a protection key; and storing the protection key and a key recovery file of the protection key to a dynamic-library file, the protection key being capable of recovering to the initial key through inverse transformation by using the key recovery file. According to embodiments of the present invention, an initial key is transformed, so that a plain-text encryption key cannot be obtained without permission. Therefore, a target file cannot be encrypted, so that the security performance is improved. |