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 Juan F. Esteban Müller via Tech-talk
- Navigate by Date:
- Prev:
change MACRO with text-entry value in CSS Phoebus Peter Leban via Tech-talk
- Next:
Re: Integration of Elog into Phoebus Juan F. Esteban Müller 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
<2020>
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: change MACRO with text-entry value in CSS Phoebus Peter Leban via Tech-talk
- Next:
Re: Integration of Elog into Phoebus Juan F. Esteban Müller 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
<2020>
2021
2022
2023
2024
|