Re: [pgadmin-hackers] [GENERAL] pgAdmin4 needs information of v10 SCRAM authentication

2017-04-23 Thread Michael Paquier
On Mon, Apr 24, 2017 at 3:04 PM, Akshay Joshi wrote: >I have gone through this, but still facing issue to encrypt/change the > database server password. In pgAdmin4 we have "Change Password" feature where > user will enter the old and new password for the database server, now we will > have

Re: [pgadmin-hackers] [GENERAL] pgAdmin4 needs information of v10 SCRAM authentication

2017-04-23 Thread Akshay Joshi
Hi Michael On Fri, Apr 21, 2017 at 12:07 PM, Michael Paquier wrote: > On Fri, Apr 21, 2017 at 3:27 PM, Akshay Joshi > wrote: > > from passlib.hash import scram > > hash = scram.encrypt(data['newPassword']) -- This function provide > password for all the supported digest like [md5, sha-1, sha-25

Re: [pgadmin-hackers] [GENERAL] pgAdmin4 needs information of v10 SCRAM authentication

2017-04-20 Thread Akshay Joshi
On Fri, Apr 21, 2017 at 12:20 PM, Michael Paquier wrote: > On Fri, Apr 21, 2017 at 3:43 PM, Akshay Joshi > wrote: > >Thanks Michael, will check this. > > One thing I forgot to mention... Both StoredKey and ServerKey are now > encoded in hex, but there is still an open item related to the > h

Re: [pgadmin-hackers] [GENERAL] pgAdmin4 needs information of v10 SCRAM authentication

2017-04-20 Thread Michael Paquier
On Fri, Apr 21, 2017 at 3:43 PM, Akshay Joshi wrote: >Thanks Michael, will check this. One thing I forgot to mention... Both StoredKey and ServerKey are now encoded in hex, but there is still an open item related to the handling of psql's \password on which I have written a patch to switch th

Re: [pgadmin-hackers] [GENERAL] pgAdmin4 needs information of v10 SCRAM authentication

2017-04-20 Thread Akshay Joshi
On Fri, Apr 21, 2017 at 12:07 PM, Michael Paquier wrote: > On Fri, Apr 21, 2017 at 3:27 PM, Akshay Joshi > wrote: > > from passlib.hash import scram > > hash = scram.encrypt(data['newPassword']) -- This function provide > password for all the supported digest like [md5, sha-1, sha-256, sha-512].

Re: [pgadmin-hackers] [GENERAL] pgAdmin4 needs information of v10 SCRAM authentication

2017-04-20 Thread Michael Paquier
On Fri, Apr 21, 2017 at 3:27 PM, Akshay Joshi wrote: > from passlib.hash import scram > hash = scram.encrypt(data['newPassword']) -- This function provide password > for all the supported digest like [md5, sha-1, sha-256, sha-512]. Didn't work > I have tried with all the passwords. > test = scra