Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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.

Thanks.


Comment on Re^4: Password Encryption and Decryption
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.

    CountZero

    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://961301]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-07-11 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (232 votes), past polls