Techniques for obscuring sensitive strings in C++

后端 未结 14 867
孤街浪徒
孤街浪徒 2020-12-12 12:12

I need to store sensitive information (a symmetric encryption key that I want to keep private) in my C++ application. The simple approach is to do this:

std::         


        
14条回答
  •  清歌不尽
    2020-12-12 13:07

    I agree with @Checkers, your executable can be reverse-engineered.

    A bit better way is to create it dynamically, for example:

    std::string myKey = part1() + part2() + ... + partN();
    

提交回复
热议问题