News for hackers. Stuff that matters.
Re:Are passwords stored in memory safe? by lkjsdflkj on Friday January 17, 2014 @12:41AM (#7074486)
Nobody ever thinks of the case where a program has to supply a password and not just check it. For example, suppose your program (that runs unattended) has to interact with some JSON-RPC API, and the remote server expects a password. That password has to come from somewhere.
Re:Are passwords stored in memory safe? by mpyne on Friday January 17, 2014 @03:22PM (#7078194)
You should use public-key crypto for this case when possible. Any key you bake into the binary will be a publically-known password for anyone who gets access to that binary. With public-key crypto it's safe to include the public key and then make an ad hoc session key using secure key exchange.