src/treesutil.c
/**
 * new user key creation
 *
 * takes 'password' in stdin
 * outputs pubkey, salt, nonce, lockedstr in hex format
 * delimited by nul
 */
new user key creation
takes 'password' in stdin
outputs pubkey, salt, nonce, lockedstr in hex format
delimited by nul
new user key creation takes ' password ' in stdin outputs pubkey salt nonce lockedstr in hex format delimited by nul
static void
createuser()
{
    char **inputs;
    user_t user;
    inputs = getinputs(1);
    crypto_box_keypair(user.pubkey, user.privkey);
    gensecrets(&user, inputs[0]);
    hexuser(&user);
    printuser(&user);
    exit(EXIT_SUCCESS);
}
static void createuser ( ) { char * * inputs ; user_t user ; inputs = getinputs ( 1 ) ; crypto_box_keypair ( user . pubkey , user . privkey ) ; gensecrets ( & user , inputs [ 0 ] ) ; hexuser ( & user ) ; printuser ( & user ) ; exit ( EXIT_SUCCESS ) ; }
new user key creation
 takes 'password' in stdin
 outputs pubkey, salt, nonce, lockedstr in hex format
 delimited by nul
new user key creation takes ' password ' in stdin outputs pubkey salt nonce lockedstr in hex format delimited by nul