1. Go to this page and download the library: Download strukt/key library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$message = "Hi! My name is (what?)
My name is (who?)
My name is
Slim Shady
Hi! My name is (huh?)
My name is (what?)
My name is
Slim Shady";
$file = "file:///home/churchill/.ssh/id_rsa.pub"
// $p = new Strukt\Ssl\KeyPair();//No Private Key
// $p->setPublicKey($file);
// $p = keypair()->setPublicKey($file); //No Private Key
// $p = pubkey(local("strukt.pub")); //No Private Key
$p = pubkey($file);
// $enc = Strukt\Ssl\All::useKeys($p)->toSend($message);
$enc = ssl($p)->toSend($message);
// $p = new Strukt\Ssl\KeyPair($path, "p@55w0rd");
// $p->getPublicKey(); // Trigger public key extraction from private key
$p = keypair($path, "p@55w0rd");
$p->getPublicKey(); // Trigger public key extraction from private key
// $k = Strukt\Ssl\All::useKeys($p)
$k = ssl($p);