use TownsendSecurity\Akm;
use TownsendSecurity\KeyServer;
$akm = new Akm();
$key_server = new KeyServer(
$server_name,
$server_host,
$path_to_local_cert,
$path_to_ca_cert
);
$akm->addKeyServer($key_server);
$saved_key = $akm->getKeyValue('my_key');
$encrypted_data = $akm->encrypt('test data', 'my_key');
$plaintext = $akm->decrypt($encrypted_data);
assert($plaintext === 'test data');
townsendsecurity/akm-php
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published