From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Matthias Apitz <guru@unixarea.de>
To: Justin <zzzzz.graf@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: calculating the MD5 hash of role passwords in C
Date: Wed, 22 Jan 2020 13:05:07 -0800
Message-ID: <6ecdd8da-1a3c-1b30-ea61-3756b57beafb@aklaver.com> (raw)
In-Reply-To: <20200122205802.GA3032@c720-r342378>
References: <20200122182036.GA2908@c720-r342378>
<20200122185847.GA90048@elch.exwg.net>
<20200122194113.GA2410@c720-r342378>
<CALL-XeNZUNYp0_bgg2O=Z+=yzwnnpXTDOqOVxvE35dJDeQOcAA@mail.gmail.com>
<20200122205802.GA3032@c720-r342378>
On 1/22/20 12:58 PM, Matthias Apitz wrote:
> El día miércoles, enero 22, 2020 a las 03:32:17p. m. -0500, Justin escribió:
>
>> Not sure what your after but here is more information regarding how to
>> store passwords in Postgresql, ...
>
> I just want to write a piece of C-code to generate the same string as
> stored in rolpassword based on the roles password (and as I learned
> added the rolname), i.e. how to generate md52f128a1fbbecc4b16462e8fc8dda5cd5
> from sisis123 (password) and sisis (rolename). And this, not to brute
> force credentials, but to understand the hash.
The way Postgres does it:
https://doxygen.postgresql.org/src_2common_2md5_8c.html#ad1cda4632643f79bbb60f0466fec0e41>
> matthias
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, guru@unixarea.de, zzzzz.graf@gmail.com
Subject: Re: calculating the MD5 hash of role passwords in C
In-Reply-To: <6ecdd8da-1a3c-1b30-ea61-3756b57beafb@aklaver.com>
References: <20200122182036.GA2908@c720-r342378> <20200122185847.GA90048@elch.exwg.net> <20200122194113.GA2410@c720-r342378> <CALL-XeNZUNYp0_bgg2O=Z+=yzwnnpXTDOqOVxvE35dJDeQOcAA@mail.gmail.com> <20200122205802.GA3032@c720-r342378> <6ecdd8da-1a3c-1b30-ea61-3756b57beafb@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox