How do you hide secret keys in code?

前端 未结 10 1629
不思量自难忘°
不思量自难忘° 2020-12-04 19:20

I\'ve wondered for some time how some software hides secret keys in such a way that they can\'t be trivially discovered. Just a few examples:

  • DVD Player Softwa
10条回答
  •  不知归路
    2020-12-04 19:44

    If you can afford it, the best is to store the private key in a cryptographic USB token. The key is write only, ie you can set it but not read it. The token does the cryptographic operations internally, in its hardware. It becomes very complicated to retrieve the key (if the token has no known vulnerability, which is not the case with older ones).

提交回复
热议问题