Securing a password in source code?

后端 未结 10 1853
醉酒成梦
醉酒成梦 2020-11-28 07:18

I have a password in my code which is needed to connect to a sftp server. Whats the best way to \"obfuscate\" or hide it in the code?

Thanks

10条回答
  •  温柔的废话
    2020-11-28 08:14

    Don't save your password in the source code.

    Read this: http://en.wikipedia.org/wiki/Security_through_obscurity

    There is no good way.

    All you can do is use a smart algorithm to encrypt the password.

    An experienced reverse engineer would manage to crack it.

提交回复
热议问题