I want to use PGP in my PHP project, using XAMPP on Windows.
When I run this code:
$public_key = "PGP Public Key";
$gpg = new gnupg();
$key = $gpg->import($public_key);
$gpg->addencryptkey($key['fingerprint']);
$enc = $gpg->encrypt("Hello Stackoverflow!");
$gpg->clearencryptkeys();
echo nl2br($enc);
I get an error message telling me that I have to install the GNUPG extension in my Apache server.
How do I install GNUPG for XAMPP on Windows? I only found solutions for Linux.