-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify hash of Python installer #21877
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would extract the code into separate function bool verifyPythonInstaller(const Path &installerPath)
.
9ab699c
to
5bb0c35
Compare
Done. |
5bb0c35
to
3229c8a
Compare
3229c8a
to
09e6667
Compare
const QString PYTHON_INSTALLER_URL = u"https://www.python.org/ftp/python/3.13.0/python-3.13.0-amd64.exe"_s; | ||
const QByteArray PYTHON_INSTALLER_MD5 = QByteArrayLiteral("f5e5d48ba86586d4bef67bcb3790d339"); | ||
const QByteArray PYTHON_INSTALLER_SHA3_512 = QByteArrayLiteral("28ed23b82451efa5ec87e5dd18d7dacb9bc4d0a3643047091e5a687439f7e03a1c6e60ec64ee1210a0acaf2e5012504ff342ff27e5db108db05407e62aeff2f1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xavier2k6
In the future, in case you want to update python installer, you can use this site to calculate SHA3-512 hash: https://emn178.github.io/online-tools/sha3_512_checksum.html
The MD5 hash should be copied from python.org as is: https://www.python.org/downloads/release/python-3130/
@Chocobo1 Thanks for the tip! |
No description provided.