Alex Rivera | Logout

Securing a password in source code?

Asked 2010-11-11T14:07:46.947
48

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

Edit
Report

1 Answer

1

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.

answered 2010-11-11T14:13:28.637

Your Answer