[COOK-3222] Add optional password length parameter to secure_password

Signed-off-by: Seth Vargo <sethvargo@gmail.com>