Skip to content
Demo site on digiid-php with login/register
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
classes
css
images
js
.gitignore
.gitmodules
README.md
ajax.php
callback.php
config.example.php
config.php
dashboard.php
forget.php
index.php
logout.php
register.php

README.md

DigiID demo site

Demo site implementation of DigiID project/draft for authentication. If you like this work, you may send some DGB to me: DPZ9BncvaCRx7vMXN6dAQNnXzTP6JVahqj

Based on the digibyte/digiid-php, which based on the work of scintill/php-bitcoin-signature-routines and using PHPECC classes

Licensed under the Apache License, Version 2.0 (unless it's not compatible with the license of works used)

DigiByte Authentication Open Protocol

Pure DigiByte sites and applications shouldn’t have to rely on artificial identification methods such as usernames and passwords. DigiID is an open protocol allowing simple and secure authentication using public-key cryptography.

Classical password authentication is an insecure process that could be solved with public key cryptography. The problem however is that it theoretically offloads a lot of complexity and responsibility on the user. Managing private keys securely is complex. However this complexity is already being addressed in the Bitcoin ecosystem. So doing public key authentication is practically a free lunch to digibyters.

The protocol is described on the following BIP draft and is open for discussion :

https://github.com/bitid/bitid/blob/master/BIP_draft.md

Demo

You may see demo: https://DigiByteForums.io Free Registration/Login by QR with ability to be forgotten.

Installation

Notes

  • GMP PHP extension is required (most shared hostings don't have it, another reason to implement digibyted support)
  • By default, it will only allow 1 user by IP to try login at the same time (once a user is logged, another user could start the login process), this example could be modify to allow several (no need to modify DigiID)

License

The MIT License (MIT)

Copyright (c) 2018-2019 Sergey Taranov Copyright (c) 2016 Daniel Esteban

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.