Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: Password Encryption and Decryption

by spiros (Beadle)
on Aug 13, 2012 at 14:59 UTC ( #987137=note: print w/replies, xml ) Need Help??

in reply to Re^2: Password Encryption and Decryption
in thread Password Encryption and Decryption

You can check out Crypt::SaltedHash which implements this -
  • Comment on Re^3: Password Encryption and Decryption

Replies are listed 'Best First'.
Re^4: Password Encryption and Decryption
by Anonymous Monk on Nov 05, 2012 at 19:35 UTC
    I'm not sure that will work as he's trying to login to his AD account with this script. With this password so his script having a hash won't help him unless he's prepared to put the password in again and if he is then his script can't be automated. I'm faced with the same issue, we can't have plaintext passwords, but we want to automate the process of logging into the system to make sure it's avaialble for use. What is the preffered secure way of doing this? Even if we create a service account for this we can't reduce the priviledges enough to satisfy security so there has got to be a way that makes sense. What about something like this: The passwords are stored in an ecrypted file in another location other than the script. The script decrypts the file reads the password and then makes the appropriate checks. (Someone mentioned this earlier I know) The problem is how to do this securely so that the person cannot get the password from the script even if he just runs the code written in the script? When an admin user on a windows system wants to setup a service to run using a specific account they do punch the password into an window that stores the password somewhere for future use. This must be protected somehow no? Perhaps the method is in binary so it makes it a bit harder to thwart?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987137]
[LanX]: keeping them busy ... (diabolic laughter)
[Eily]: speaking of hacking
[Eily]: there's a new Mc Gyver series, with a hacker in the team
[Eily]: her skills are so good that they can be used to hack a pacemaker
[LanX]: team?
[Eily]: yup, he's part of a secret agent team or something like that
[Your Mother]: Haven't seen it, but let me guess. There is a woman and a minority agent and no Germans? Close? :P
[Eily]: you're good :P
[Eily]: except if you count their boss, which is both a woman and from a minority
[LanX]: na, they go easy on germans since they discovered the German TV market

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2018-03-19 14:35 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.