mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-25 15:37:09 +00:00
21 lines
No EOL
352 B
PHP
21 lines
No EOL
352 B
PHP
<?php
|
|
|
|
require_once __DIR__ . "/vars.inc";
|
|
|
|
class gnupgt {
|
|
static function import_key()
|
|
{
|
|
global $testkey;
|
|
|
|
self::delete_key();
|
|
|
|
$gpg = new gnupg();
|
|
$gpg->import($testkey);
|
|
}
|
|
|
|
static function delete_key()
|
|
{
|
|
@unlink(__DIR__ . "/pubring.gpg");
|
|
@unlink(__DIR__ . "/secring.gpg");
|
|
}
|
|
} |