dongshao1156 2012-01-20 01:30
浏览 15
已采纳

Go-二进制密码安全

I intend to save a password/secret key in my Go application to be used in communication with some other applications. I wonder how to secure it from for example someone obtaining the binary and searching for it in some hex viewer. Are such security practices common, or am I worrying too much?

  • 写回答

2条回答 默认 最新

  • doupingmao1903 2012-01-20 15:44
    关注

    Obfuscate the data and/or code. This means to store the password in a form that is reasonably difficult to search for, and if its location is found the password is reasonably difficult to decipher.

    In case no obfuscation method is secure enough (you want full security), the only solution is not to put the password into the executable in any form.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?