Refactor password implementation to support passing an array of parameters to password implementations.