Skip to content

xp-forge/keepass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeePass databases

Build status on GitHub XP Framework Module BSD Licence Requires PHP 7.0+ Supports PHP 8.0+ Latest Stable Version

Read access to KeePass database files.

Example

use info\keepass\{KeePassDatabase, Key};
use io\streams\FileInputStream;
use util\cmd\Console;

$db= KeePassDatabase::open(new FileInputStream('database.kdbx'), new Key('passphrase'));
Console::writeLine($db);

// Show top-level groups and password entries inside these
foreach ($db->groups() as $group) {
  foreach ($group->passwords() as $name => $password) {
    Console::writeLine($name, ': ', $password);
  }
}
$db->close();

See also

http://keepass.info/