zayar/phpkeystore
Composer 安装命令:
composer require zayar/phpkeystore
包简介
This is the copy of Crypt_KeyStore Library developed by ne0phyte
README 文档
README
**
PHP KeyStore
This is the copy of Crypt_KeyStore Library developed by ne0phyte The following are from the original home page now on wayback machine - https://web.archive.org/web/20170607151254/http://phpkeystore.org/
Basic Examples
<?php
require_once 'Crypt/KeyStore.php';
// get the key store instance
$ks = Crypt_KeyStore::getInstance('DefaultKeyStore');
// create a secret (symmetric) key
$ks->createSecretKey('mykey', 'changeit');
// encrypt some data
$data = 'The quick brown fox jumped over the fence';
$cipher = $ks->encrypt($data, 'mykey', 'changeit');
// decrypt some data
$decrypted = $ks->decrypt($cipher, 'mykey', 'changeit');
// save the key store
$ks->store('mykeystore.pks', 'changeit');
// load a keystore file
$ks->load('mykeystore.pks', 'changeit');
// delete a key
$ks->deleteEntry('mykey');
// and so-on
?>
Contact
- Steve Wamsley swamsley@gmail.com
**
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-20