On Sat, Feb 06, 2010 at 05:31:29PM -0800, Chris Anderson wrote:
> I'd love to hear people's ideas about what schema to store the passwords in:
> 
> maybe something like this in the _user doc:
> 
> {
> credentials : {
>   type : "bcrypt",
>   whatever else
> }
> }

Don't reinvent the wheel; do exactly what OpenLDAP does with userPassword.

password: "plain"
password: "{CRYPT}$1$foo$bar"
password: "{SHA1}..."
password: "{SSHA1}...with salt..."
... etc

Reply via email to