Print wifi password

i have store 90 user and pass for wifi in file : wifi.txt
with format

  user : abc  pass : 1qw
  user : adc  pass : 1ww
  user : abd  pass : 12w
  etc

i want to print at ticket bill user and pass.
any idea to make iterator for each line when print.

i have idea to store use ticket tag,
but how to make automate iterate / change each sub tags when print it.