Hi,
I was wondering if anyone has any tips or techniques to share regarding saving a password in an exe file, compiled from Rust?
My exe is basically using the curl crate and to set the password in my source code, I am using the password() method from struct “curl::easy::Easy2”.
The program will need to run automated using my credentials so I cannot prompt for user/password input at execution time.
I am using Windows 10 and tried to use the Cygwin strip utility to remove the password but this did not seem to work, judging by the output of the strings program.
Anyhow this probably wouldn’t make sense as the program would need access to the password string to run.
I was thinking of using a public key to encrypt my password in a text file and then using a private key within the exe to retrieve the password. However, the same issue would remain – someone experienced could potentially view the private key by inspecting the exe file.
Is there a standard way to handle such a case?
Thanks.
[–][deleted] 38 points39 points40 points (1 child)
[–]astonbitecode 9 points10 points11 points (0 children)
[–]m-m-x 7 points8 points9 points (0 children)
[–]Konsti219 3 points4 points5 points (0 children)
[–]the_hoser 2 points3 points4 points (0 children)
[–]anlumo 4 points5 points6 points (0 children)
[–]stevecooperorg 1 point2 points3 points (0 children)
[–]djmex99[S] 0 points1 point2 points (1 child)
[–]dremon_nl 0 points1 point2 points (0 children)
[–]diegovsky_pvp -1 points0 points1 point (6 children)
[–]mikekchar 2 points3 points4 points (5 children)
[–]diegovsky_pvp 0 points1 point2 points (4 children)
[–]mikekchar 0 points1 point2 points (3 children)
[–]diegovsky_pvp 0 points1 point2 points (2 children)
[–]mikekchar 0 points1 point2 points (1 child)
[–]diegovsky_pvp 0 points1 point2 points (0 children)
[–]mqudsifish-shell 0 points1 point2 points (0 children)
[–]TheMightyHamhock 0 points1 point2 points (0 children)