Updated the python codes to migrate into python 3.13 - #29
Open
wmliuanl wants to merge 3 commits into
Open
Conversation
modified the cryptUtility.py and CryptUtility.java to use SHA512 modified install_all.sh script to only install java packages The code will be using python from the host and no need to create a copy of itself
Contributor
|
@wmliuanl Thank you for your contribution! I was curious with other places that might have BELY deployed. What facility are you with? The python web service is deprecated I should remove it from the repo. Can I get more details and the improvements to the cryptUtility.py |
Author
|
The reason I updated the python codes because I was having trouble to deploy it as is when I was trying to migrate and update the initial deployment to a different host.
BTW, this is from Argonne Wakefield Accelerator Facility.
The crypto module has been removed from python 3.13, so I replaced it with passlib and use pbkdf2_sha512 to hash the password.
After that I'm having trouble to login local accounts with fresh database because CryptUtility.java is using pbkdf2_sha1 algorithm instead of sha512 and also the encrypted data format is different than what the python cryptUtility has stored in the new database. So I went ahead and changed CryptUtility.java.
As the result of those changes with cryptUtility, the password stored in the old database needs to be updated manually before the local user can login.
…________________________________
From: Dariusz Jarosz ***@***.***>
Sent: Friday, August 21, 2026 3:27 PM
To: AdvancedPhotonSource/BELY ***@***.***>
Cc: Liu, Wanming ***@***.***>; Mention ***@***.***>
Subject: Re: [AdvancedPhotonSource/BELY] Updated the python codes to migrate into python 3.13 (PR #29)
iTerminate left a comment (AdvancedPhotonSource/BELY#29) @wmliuanl Thank you for your contribution! I was curious with other places that might have BELY deployed. What facility are you with? The python web service is deprecated I should remove
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
[https://avatars.githubusercontent.com/u/13026379?s=20&v=4]iTerminate left a comment (AdvancedPhotonSource/BELY#29)<https://urldefense.us/v3/__https://github.com/AdvancedPhotonSource/BELY/pull/29*issuecomment-5375000762__;Iw!!G_uCfscf7eWS!cjti7CuP7sHCmy2D56hiubUqe85vUnuq-Dxw34MsukKlnRFlq7Q-zvsHSx97FVZcbFroOnNB0ktxg3Zf29mWG6U$>
@wmliuanl<https://urldefense.us/v3/__https://github.com/wmliuanl__;!!G_uCfscf7eWS!cjti7CuP7sHCmy2D56hiubUqe85vUnuq-Dxw34MsukKlnRFlq7Q-zvsHSx97FVZcbFroOnNB0ktxg3ZfWMq-8p4$> Thank you for your contribution! I was curious with other places that might have BELY deployed. What facility are you with?
The python web service is deprecated I should remove it from the repo. Can I get more details and the improvements to the cryptUtility.py
—
Reply to this email directly, view it on GitHub<https://urldefense.us/v3/__https://github.com/AdvancedPhotonSource/BELY/pull/29?email_source=notifications&email_token=ASWRDNPCHDSVW3FIKBJC2CT5LCWBNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZXGUYDAMBXGYZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM*issuecomment-5375000762__;Iw!!G_uCfscf7eWS!cjti7CuP7sHCmy2D56hiubUqe85vUnuq-Dxw34MsukKlnRFlq7Q-zvsHSx97FVZcbFroOnNB0ktxg3ZfZqxcG_A$>, or unsubscribe<https://urldefense.us/v3/__https://github.com/notifications/unsubscribe-auth/ASWRDNK2BH4HQOHHTQ6CEL35LCWBNAVCNFSNUABGKJSXA33TNF2G64TZHMYTANBQGE4DMNZTGM5US43TOVSTWNJSGE2TGNZTG44TRILWAI__;!!G_uCfscf7eWS!cjti7CuP7sHCmy2D56hiubUqe85vUnuq-Dxw34MsukKlnRFlq7Q-zvsHSx97FVZcbFroOnNB0ktxg3ZfxpJ6aCU$>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://urldefense.us/v3/__https://github.com/notifications/mobile/ios/ASWRDNPKZBJUARZM6RK77ZL5LCWBNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZXGUYDAMBXGYZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y__;!!G_uCfscf7eWS!cjti7CuP7sHCmy2D56hiubUqe85vUnuq-Dxw34MsukKlnRFlq7Q-zvsHSx97FVZcbFroOnNB0ktxg3ZfcazPn74$> and Android<https://urldefense.us/v3/__https://github.com/notifications/mobile/android/ASWRDNNL44WFT23UGJFZVYD5LCWBNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZXGUYDAMBXGYZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI__;!!G_uCfscf7eWS!cjti7CuP7sHCmy2D56hiubUqe85vUnuq-Dxw34MsukKlnRFlq7Q-zvsHSx97FVZcbFroOnNB0ktxg3Zf6VIdle4$>. Download it today!
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
modified the cryptUtility.py and CryptUtility.java to use SHA512 modified install_all.sh script to only install java packages The code will be using python from the host and no need to create a copy of itself