fix passsword encryption

Signed-off-by: nigel <nigel.cook@hp.com>