Hi
func main() {
// Set up authentication information.
// Connect to the server, authenticate, set the sender and recipient,
// and send the email all in one step.
"Subject: discount Gophers!\r\n" +
"\r\n" +
"This is the email body.\r\n")
if err != nil {
log.Fatal(err)
}
}
this go program runs on a little PC that could be shipped to users, and the little PC would be beyond my control. I read through the Internet and pretty much everyone says it is bad idea to put plaintext password in applications even in compiled binary. this link
http://manoharvanga.com/hackme/ "Deconstructing an ELF file" even describe details on how to reverse engineering the binary and reveal the password.
so if storing plaintext password in compiled go binary is bad idea, is there anyway to go around in my go net/smtp scenario ? I looked bcrypt but not sure how to apply bcrypt in this situation, storing hashed password in the program? any suggestions is welcome! thanks!
Note I don't need military grade security, but secure enough to defer the most attempt to steal the email password
Thanks
Vincent