write gen password result to result.txt

write gen password result to result.txt