PHP libraries for nomorepass.com public API
You can use this library in combination with nomorepass app (nomorepass.com) to send or receive passwords in a safe an easy way.
Just copy the nomorepass.php file in your sources an import it:
requiere_once 'nomorepass.php';
$username = 'myusername';
$password = 'mypassword';
$site = 'mysite';
$nmp = new NoMorePass();
$qrtext = $nmp->getQrSend($site,$username,$password,['type' => 'pwd']);
// Here you can show the QR with $qrtext inside
// the user has 2 hours to scan and receive the password
If you want to wait until the password were received you can do with
$res = $nmp->send();
$nmp = new NoMorePass();
$qrtext = $nmp->getQrText('misitio');
// Show the qrcode and wait for response
$res = $nmp->start();
if (array_key_exists('error',$res)) {
error_log("Error");
} else {
$username = $res['user'];
$password = $res['password'];
$extra = $res['extra'];
}
You can see the examples in this directory to check the libraries
- testsend.php : example to send a password to mobile phone
- testreceive.php : example to receive a password sent from mobile phone
visit https://nomorepass.com or open here an issue
- node/js: https://github.com/yoprogramo/nomorepass
- python: https://github.com/yoprogramo/nomorepass-py
- Dart/Flutter: https://github.com/yoprogramo/nomorepass-dart
- Java: https://github.com/yoprogramo/nomorepass-java
- Download and install the mobile app
- [android] https://play.google.com/store/apps/details?id=com.biblioeteca.apps.NoMorePass
- [ios] https://itunes.apple.com/us/app/no-more-pass/id1199780162?l=es&ls=1&mt=8
- Open it and create a new password (or use some of yours)
- Then you can scan the qrcode generated by the library to send securely this password to your app or send/update passwords from your code to the app.
(c) 2022 Nomorepass.com