-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thomas Kerin
committed
May 3, 2018
1 parent
3b681e5
commit c9c3cd2
Showing
7 changed files
with
32 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pinentry | ||
======== | ||
|
||
This package allows PHP command line applications to prompt | ||
users for a passphrase / pin using the gpgtools `pinentry` program. | ||
|
||
https://www.gnupg.org/related_software/pinentry/index.html | ||
|
||
The PinRequest class allows passphrase requests to be parameterized | ||
(messages, titles, button text), or to request a confirmation password | ||
also. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
require "vendor/autoload.php"; | ||
use BitWasp\PinEntry\PinEntry; | ||
|
||
$pinEntry = new PinEntry("/usr/bin/pinentry"); | ||
$pin = $pinEntry->getInfo("pid"); | ||
echo "got pin {$pin}\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
require "vendor/autoload.php"; | ||
use BitWasp\PinEntry\PinEntry; | ||
use BitWasp\PinEntry\PinRequest; | ||
|
||
$pinEntry = new PinEntry("/usr/bin/pinentry"); | ||
$pin = $pinEntry->getInfo("version"); | ||
echo "got pin {$pin}\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
namespace BitWasp\PinEntry; | ||
|
||
class Request | ||
class PinRequest | ||
{ | ||
/** | ||
* @var string[]|int[] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters