Small improvement when transforming array

Signed-off-by: crynobone <crynobone@gmail.com>
Hide password from to_array()

Signed-off-by: crynobone <crynobone@gmail.com>