- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Perl coding question, topic Password encryptio...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 05:06 AM
08-11-2005 05:06 AM
I was wondering if anyone had a good example of a function to ask for a password, encrypt it to store in a file that would be decrypted back to a variable when your app needs it later.
This is not a web or cgi type scripting I am working on, only Perl.
The It would be useful if the encryption part could run separate from the decryption and without user intervention.
The reason I am looking is I would rather my automated Perl Scripts did not store open text passwords, and I would like more security than locking down a directory.
So bascically I am looking for a perl script to run ask for a password to add to a file encrypted.
Then another piece of Perl code that could decrypt it to a easy to use variable so your program could use it without having to be interactive with the user asking for any input.
Not to confuse the question but after I am done with the unencrypted variable in the program should I shoot trash into it/zero it before the program exit to be extra safe, its all Perl by the way?
Many Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 05:11 AM
08-11-2005 05:11 AM
Re: Perl coding question, topic Password encryption
# perldoc -q "How do I ask the user for a password?"
# perldoc -f crypt
It's all in there, including examples
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 06:18 AM
08-11-2005 06:18 AM
Re: Perl coding question, topic Password encryption
I am looking not to store any unencrypted passwords in text files. The only time I intend to enter a password is to encrypt it. I do not want to have to retype it every time the app launches. This a cron/scheduled application I am working on.
More along the lines of public and private keys, but the result producing the password the app will use. They are not OS user accounts either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 06:53 AM
08-11-2005 06:53 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 07:52 AM
08-11-2005 07:52 AM
Re: Perl coding question, topic Password encryption
In encrypted form of course
# man perlipc
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2005 08:10 AM
08-11-2005 08:10 AM
Re: Perl coding question, topic Password encryption
Have you used this module under HPUX with Luck. It looks like it has allot of the functionality I am looking for for storing passwords for scripting.
Thanks Everyone.