add wifimasterkey

Closes #5420.