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);
$enc = Strukt\Ssl\All::useKeys($p)->toSend($message);
$p = new Strukt\Ssl\KeyPair($path, "p@55w0rd");
$p->getPublicKey()//trigger public key extraction from private key
$k = Strukt\Ssl\All::useKeys($p)