Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^4: Password Encryption and Decryption

by slayedbylucifer (Scribe)
on Mar 23, 2012 at 19:51 UTC ( #961301=note: print w/replies, xml ) Need Help??

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

Ok, so then is there a way I can have my script without a clear text password and still make it work?....

My application will accept only AD password in their REAL form. Because sending an encrypted password to the application will get me access denied as that would be a wrong password.

The application provides Perl API for automating task. So, I wanted to know is there a way to get this done in perl.


  • Comment on Re^4: Password Encryption and Decryption

Replies are listed 'Best First'.
Re^5: Password Encryption and Decryption
by CountZero (Bishop) on Mar 23, 2012 at 20:00 UTC
    If your application wants a clear password, then you have to give it a clear password. There is no way around this.

    You can have your password in your program in an encrypted form and only have it decrypted against another password it asks for when you run it. That would be a more secure way, but not really practical.

    Another solution would be to save your password in a file on a memorystick and have your program read it from the stick and remove the stick once your are logged in. Then nobody can log in as you unless they also have access to the file on the memory stick. Your security problem then becomes a matter of physical security of your memorystick.


    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
Re^5: Password Encryption and Decryption
by JavaFan (Canon) on Mar 23, 2012 at 20:27 UTC
    Well, you could always ask for the password, and type it in when the program asks for it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://961301]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2018-05-25 04:08 GMT
Find Nodes?
    Voting Booth?