Re: [HACKERS] SCRAM salt length - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] SCRAM salt length
Date
Msg-id b3b07184-eb1f-0e91-8dee-a3a05e1a1ef8@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] SCRAM salt length  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: [HACKERS] SCRAM salt length  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
On 8/17/17 09:21, Heikki Linnakangas wrote:
> The RFC doesn't say anything about salt 
> length, but the one example in it uses a 16 byte string as the salt. 
> That's more or less equal to the current default of 12 raw bytes, after 
> base64-encoding.

The example is
  S: r=rOprNGfwEbeRWgbNEkqO%hvYDpWUa2RaTCAfuxFIlj)hNlF$k0,     s=W22ZaJ0SNY7soEsUEjb6gQ==,i=4096

That salt is 24 characters and 16 raw bytes.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] [BUGS] [postgresql 10 beta3] unrecognized node type: 90
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] SCRAM salt length