Example #1
0
def save_stub_files(server_stub):
    secret_hash = auth.saltedhash_hex(qcrypt.denormalize(server_stub['secret']), server_stub['salt'])
    f = open('client_stub', 'w')
    f.write(secret_hash)
    f.close()
    nDDB.saveAdvanceDDB('server_stub', server_stub)
Example #2
0
import authenticator as auth
import os, qcrypt, keyfile, nDDB

f = open(raw_input('path of server secret: '), 'r')
s_secret_hash = f.read()
f.close()

f_name = raw_input('first name: ')
l_name = raw_input('last name: ')
print 'the login name is used as a part of the keyfile name so make it conform'
print 'to os standards. Thank you. there is *no* validation.'
login_name = raw_input('login name: ')
email = raw_input('email: ')
password = raw_input('password: '******'_keyfile')
nDDB.saveAdvanceDDB(login_name+'_serveruser', s_user)