I have a need to upload a file to a server. In order to do so, the only way I know how to do this is to connect to a server via FTP. Obviously in order to do this, I need to provide username and password pragmatically in the source code (and I've done that with WIN32) but the problem is that someone can decompile the source code or use utilities to trace the password. I am not new to programming but I am new to this particular area. How is this done? I need to know the way the method works behind it.
All I want to do is be able to upload or download a file in a secure manner using an utility of mine but the only logical way I know how to do is via FTP and I have done it with Windows API but I know that putting passwords in the source code is not a brilliant idea because as stated above, one can decompile the program or use utilities to trace the password.
Any Java/Android or C++/WIN32 references will be fine. When I say references, I mean documentation, not in particular source code examples.
Question
rwx
Hello all,
I have a need to upload a file to a server. In order to do so, the only way I know how to do this is to connect to a server via FTP. Obviously in order to do this, I need to provide username and password pragmatically in the source code (and I've done that with WIN32) but the problem is that someone can decompile the source code or use utilities to trace the password. I am not new to programming but I am new to this particular area. How is this done? I need to know the way the method works behind it.
All I want to do is be able to upload or download a file in a secure manner using an utility of mine but the only logical way I know how to do is via FTP and I have done it with Windows API but I know that putting passwords in the source code is not a brilliant idea because as stated above, one can decompile the program or use utilities to trace the password.
Any Java/Android or C++/WIN32 references will be fine. When I say references, I mean documentation, not in particular source code examples.
Thanks
Link to comment
Share on other sites
14 answers to this question
Recommended Posts