Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hello Monks,

I have simple question for you. I am newbie at Perl. I want to have apassword encryption and decryption mechanism in my perl script. Write now hte password that I use in my script is a clear text passwordand my scripts works fine wiht it. so, I want to get rid of the clear text password.

So far after doing a lot of googling, I came accorss following 3 modules whihc could be useful for my use case

Crypt::CBC Crypt::Twofish_PP MIME::Base64

I am just not able to get it right with either of them. Eeither I am too naive to understand these modules OR I am running after the wrong stuff.

So, this is what i want to:

1) encrypt the password in a dedicated perl script 2) Use this encrypted password in my perl script (where right now I have clear text password), tun a subrouting to decrypt this password and then retunr the necessary password to the caller so that my Perl script continue to execute.

Could you give me guidance on how to proceed. Thanks.


In reply to Password Encryption and Decryption by slayedbylucifer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-23 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found