xclydes/x-keepass-php
最新稳定版本:1.0.0
Composer 安装命令:
composer require xclydes/x-keepass-php
包简介
A library for reading KeePass 2.x databases
关键字:
README 文档
README
Changes
- Refactor the project to use PSR-4 Autoloading
- Implement the handling of Binary (attachments in KeePass) in Meta, as well as references in Entry tags.
Usage
require_once '../vendor/autoload.php'; use KeePassPHP\KeePassPHP; use KeePassPHP\Key\CompositeKey; use KeePassPHP\Lib\Database; $file = '/path/to/your/file.kdbx'; $secret = 'YouKdbxPassword'; //Store any error messages $err = ''; //Create a composite key $ckey = new CompositeKey(); //Attach the password key $ckey->addKey( KeePassPHP::keyFromPassword( $secret ) ); //Open the databsae file /** @var Database $db */ $db = KeePassPHP::openDatabaseFile($file, $ckey, $err); //Iterate the list of binaries foreach($db->getBinaries() as $binary) { echo $binary->getContent() ."\r\n---\r\n"; }
统计信息
- 总下载量: 2.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-10