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 <2020> 2021 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 <2020> 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Integration of Elog into Phoebus |
From: | Florian Feldbauer via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 2 Sep 2020 14:22:57 +0200 |
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_cryptExample:
return sha256_crypt.hash(password, salt='', rounds=5000)[4:]
>>> sha256_crypt.hash( 'foobaa', salt='', rounds=5000)[4:]Does anyone know a way to get the same result from the password hash in Java?
'waa2sT6eBt.qk0wsucX/nxU5GcqffqlEx6ja5Lg1OR5'
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