in reply to Can I add text to a message area in an EXE file?

what about having the program read in a text file instead? or read from a config (AppConfig or any of the other Config modules), or from the registry (Win32::Registry) even? You can leave the default text in the exe in the case that the external text source doesn't exist.
  • Comment on Re: Can I add text to a message area in an EXE file?

Replies are listed 'Best First'.
Re^2: Can I add text to a message area in an EXE file?
by gautam (Initiate) on Apr 12, 2006 at 13:38 UTC
    Hey, thanks for the reply!

    I'm trying to avoid Config Files/ Registry for security reasons. I am looking to store passwords in the exe, post exe creation. Do you think this is possible?

      possible? maybe, i don't know .. but if security is your concern, you _really_ don't want to do that .. If you can read the passwords out to replace them, then obviously anyone can read them. They'd probably pop right up if the exe was run through the standard *nix strings utility.

      Also, wherever you store them, be sure to not store plain text passwords -- use Digest::MD5 or some other hashing techinique.
      If your only problem here is security: use one of the encryption modules to make the config file "unreadable" for others.


      holli, /regexed monk/
      You're fooling yourself if you think that's secure. If the opponent can look into a text file, he can look into the executable.

      You should use the usual security infrastructure (encryption, permissions, etc.).