EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Integration of Elog into Phoebus
From: Florian Feldbauer via Tech-talk <tech-talk at aps.anl.gov>
To: Juan F. Esteban Müller <JuanF.EstebanMuller at ess.eu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 2 Sep 2020 14:55:49 +0200

Hi Juan,

thanks for your reply, I will have a look at the code!

Are you also using the PSI Elog at ESS?

Cheers,
Florian

On 9/2/20 2:29 PM, Juan F. Esteban Müller wrote:

Hi Florian,

 

You can have a look at the library we wrote at ESS:

https://gitlab.esss.lu.se/ics-software/jelog

 

If you are only interested in the hash routine, then have a look here:

https://gitlab.esss.lu.se/ics-software/jelog/-/blob/master/src/main/java/eu/ess/jelog/Sha256.java

 

Best regards,

Juan

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Florian Feldbauer via Tech-talk <tech-talk at aps.anl.gov>
Reply-To: Florian Feldbauer <florian at ep1.ruhr-uni-bochum.de>
Date: Wednesday, 2 September 2020 at 14:23
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Subject: Integration of Elog into Phoebus

 

Hey all,

some time ago I mentioned, that I'd like to integrate the Elog logbook from PSI [1] into Phoebus.
I talked to the developers of Elog and had a look at their python library.

The Elog itself only provides HTTP(S) API, but there are different libraries for Java which can be used for that.
e.g. java-curl [2] or requests [3]

One of my main problems right now is the authentication.
In the Python library they use

from passlib.hash import sha256_crypt
return sha256_crypt.hash(password, salt='', rounds=5000)[4:]

Example:

>>> sha256_crypt.hash( 'foobaa', salt='', rounds=5000)[4:]
'waa2sT6eBt.qk0wsucX/nxU5GcqffqlEx6ja5Lg1OR5'

Does anyone know a way to get the same result from the password hash in Java?

Cheers,
Florian

[1] https://elog.psi.ch/elog/index.html
[2] https://github.com/rockswang/java-curl
[3] https://github.com/hsiafan/requests

-- 
Ruhr-Universität Bochum
AG der Experimentalphysik I
Dr. Florian Feldbauer
NB 2/131 / Fach 125
Universitätsstr. 150
D-44801 Bochum
 
Office: NB 2/134
Phone:  (+49)234 / 32-23563
Fax:    (+49)234 / 32-14170
https://paluma.ruhr-uni-bochum.de
-- 
Ruhr-Universität Bochum
AG der Experimentalphysik I
Dr. Florian Feldbauer
NB 2/131 / Fach 125
Universitätsstr. 150
D-44801 Bochum

Office: NB 2/134
Phone:  (+49)234 / 32-23563
Fax:    (+49)234 / 32-14170
https://paluma.ruhr-uni-bochum.de

References:
Integration of Elog into Phoebus Florian Feldbauer via Tech-talk
Re: Integration of Elog into Phoebus Juan F. Esteban Müller via Tech-talk

Navigate by Date:
Prev: dbpf equivalent for V4 records Sandeep Kumar Malu - UKRI STFC via Tech-talk
Next: How to handle adjusting values as they change independent of the driver in an asynPortDriver? Wlodek, Jakub via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Integration of Elog into Phoebus Juan F. Esteban Müller via Tech-talk
Next: dbpf equivalent for V4 records Sandeep Kumar Malu - UKRI STFC via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 02 Sep 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·