Skip to content

keyarmory/keyarmory-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Key Armory client library for PHP

This is the official PHP client library for the Key Armory Encryption Key Orchestration Service. You'll first need an account by going to https://keyarmory.com. Follow the instructions to set up a project and key pool and then place the API Key you receive in the initialization script below.

Installation

composer require keyarmory/keyarmory
"keyarmory/keyarmory": "*"

Instantiation

$keyarmory = new \KeyArmory\KeyArmory([
    'api_key' => 'your_api_key_here'
]);

Encryption

$encrypted_string = $keyarmory->encrypt($your_data);

Decryption

$your_data = $keyarmory->decrypt($encrypted_string);