What I sure method I used to authenticate in webpy?
<p>Hello I have an application on my localhost, the application is made with webpy, this application is an administration panel, cpanel style, I can only access because it is running on 127.0.0.1</p>

<p>Now I would like to use it on my public server.</p>

<p>But you need a very secure method of authentication with webpy.</p>

<p>Would use 3 friends and I would then be four to eight users.</p>

<p>How to accomplish this? Can you make a certificate-based method?</p>

<p>o could be stored in blowfish passwords?</p>

<p>I think that as few users are is not necessarily a complex database, perhaps sqlite is enough.</p>

<p>Thank you</p>

<ul>
<li><p>To use SSL: Add the following lines to the the web.py main file.</p>

<p><code>from web.wsgiserver import CherryPyWSGIServer
CherryPyWSGIServer.ssl_certificate = "/path/to/ssl_certificate"              CherryPyWSGIServer.ssl_private_key = "/path/to/ssl_private_key"</code></p>

<p>which allows you to use https, it sets SSL support in built-in cherrypy server web.py. Refer <a href="http://webpy.org/cookbook/ssl" rel="nofollow">this</a>.</p></li>
<li><p>To use SQLite use the <a href="http://webpy.readthedocs.io/en/latest/db.html" rel="nofollow">interface</a> given by web.py using sqlite3<br>
library.</p>

<p><code>db = web.database(dbn="sqlite", db="dbname")</code></p></li>
<li><p>You can use <a href="http://webpy.org/cookbook/userauthbasic" rel="nofollow">basic authentication</a> provided by web.py if needed.</p></li>
<li><p>Either you can directly run your web.py application in the server
using: (This limits the concurrent requests to 10)</p>

<p><code>python code.py</code></p>

<p>or you can use Fastcgi deployment through lighttpd is what web.py has recommended for production use. Refer <a href="http://webpy.org/install" rel="nofollow">this</a>.</p></li>
</ul>

python security web.py