Help save net neutrality! Learn more.
Close

pw-stdin command line option

Help
donignacio
2012-09-17
2012-11-19
  • donignacio

    donignacio - 2012-09-17

    Hi all,

    I am very interested in passing the password as a stdin stream. Can anyone elaborate on its usage? I've been trying to get somewhere with it but no luch up till now. Any help or examples are greatly appreciated.

    thanks in advance.

     
  • donignacio

    donignacio - 2012-09-17

    no luch up till now = no luck* up till now

     
  • Julian Taylor

    Julian Taylor - 2012-09-17

    what are you trying to do? and on what platform?
    you simply dump the password into the stdin stream when starting the process:

    on posix type shell you do for example this:
    cat passwordfile | keepass2 -pw-stdin database.kdbx

    I'm guessing windows shell should have similar capabilities.

     
  • develop1

    develop1 - 2012-09-17

    I can not speak to using stdin but  this might help you.

    as a one time setup.
    go into "options" "advanced" and make sure "start minimized and locked" is UNchecked
    once confirmed then exit out of keepass.

    with the above setup done this command works for me from an XP dos/cmd prompt.

    "C:\Program Files\KeePass Password Safe 2\KeePass.exe" -pw:"my?super!pasword" "C:\Documents and Settings\me\My Documents\my_personal.kdbx"

     
  • Paul

    Paul - 2012-09-20

    In Windows it's this:
    echo MypAs3w0rd | "C:\Program Files\KeePass Password Safe 2\KeePass.exe"  -pw-stdin  "C:\Documents and Settings\me\My Documents\my_personal.kdbx"

    cheers, Paul

     

Log in to post a comment.