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  2025  2026  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  2025  2026 
<== Date ==> <== Thread ==>

Subject: Re: Integration of Elog into Phoebus
From: Juan F. Esteban Müller via Tech-talk <[email protected]>
To: Florian Feldbauer <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 2 Sep 2020 12:29:36 +0000

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 <[email protected]> on behalf of Florian Feldbauer via Tech-talk <[email protected]>
Reply-To: Florian Feldbauer <[email protected]>
Date: Wednesday, 2 September 2020 at 14:23
To: "[email protected]" <[email protected]>
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

Replies:
Re: Integration of Elog into Phoebus Florian Feldbauer via Tech-talk
References:
Integration of Elog into Phoebus Florian Feldbauer via Tech-talk

Navigate by Date:
Prev: Integration of Elog into Phoebus Florian Feldbauer 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  2025  2026 
Navigate by Thread:
Prev: Integration of Elog into Phoebus Florian Feldbauer via Tech-talk
Next: Re: Integration of Elog into Phoebus Florian Feldbauer 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  2025  2026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·