in reply to Best way to store passwords

Finally got around to writing WWW::KeePassRest to solve this problem. And also wrote an article about the writing of the module, background stuff, etc.

To make a long story short, if you set things up in your KeePass database and install the KeePassRest plugin, you can do this:

use LWP; use WWW::KeePassRest; use strict; my $url = 'http://somesite.com/aa/bb/cc.html'; my $browser = LWP::UserAgent->new('Mozilla'); $browser->credentials("somesite.com:80", "Realm", WWW:::KeePassRest->get_by_title('Some site credentials', 'UserName', 'Password')); my $response=$browser->get($url);
And voila! You have secure password access. Like magic.

Replies are listed 'Best First'.
Re^2: Best way to store passwords
by Anonymous Monk on Oct 31, 2016 at 17:49 UTC
    Is this a Windows only solution?

      From https://www.smartftp.com/keepassrest:

      System Requirements

      • KeePass 2.32 or higher
      • Windows 7 SP1, 2008 R2, 8, 8.1, 10
      • Microsoft .NET Framework version 4.5 or higher

      So that looks very much like a "yes" to me.