in reply to Perl hash password on existing password

Hello Martin I am by no Means another Perl hacker, but I solved this another way. First let me say that the way you are thinking about this is probably better than what I did, but the real monks will chime in, I am sure. I put the password in a file, and made sure only the script user can read the file (user rights), and of course read it in from that file. That was just to avoid visible passwords in the script.
  • Comment on Re: Perl hash password on existing password

Replies are listed 'Best First'.
Re^2: Perl hash password on existing password
by Anonymous Monk on Jun 04, 2015 at 10:47 UTC

    Welcome, geirrg. Apologies that the first reply to you is a negative one, but security can be a serious matter. Your suggestion only adds a bit of security by obscurity to the script, and will only work under certain circumstances. Hashing is a much better solution; if it can be applied in this situation remains to be seen depending on MartinTomcik's clarifications.

      No problem, as I would also consider hashing the password to be a better solution, especially securitywise. I totally agree that security is a serious matter :-)

      In my case, the solution was quick and easy (dirty?), but it was all that was needed.