use digest authentication when username/password is provided
try to mask password and auth from parameters by memset-ing to 0