#!/bin/bash -f

function mkpw() { head /dev/urandom | uuencode -m - | sed -n 2p | cut -c1-${1:-16}; }
while read line 
do 
    KEY=$(mkpw)
    echo "$line	"$KEY
done

