zayar / phpkeystore
This is the copy of Crypt_KeyStore Library developed by ne0phyte
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/zayar/phpkeystore
This package is auto-updated.
Last update: 2025-12-20 14:25:45 UTC
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
**