Skip to content

Commit

Permalink
Add RemoteApiUtil.py (#1444)
Browse files Browse the repository at this point in the history
* Create RemoteApiUtil.py

* Bump cryptography from 42.0.4 to 43.0.1 (#299)

Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.4 to 43.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](pyca/cryptography@42.0.4...43.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
otseng and dependabot[bot] authored Sep 4, 2024
1 parent 89e2751 commit d599046
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ click==8.0.3
cobble==0.1.3
colorama==0.4.4
contextlib2==0.6.0.post1
cryptography==42.0.4
cryptography==43.0.1
Deprecated==1.2.13
diff-match-patch==20200713
distlib==0.3.4
Expand Down
12 changes: 12 additions & 0 deletions util/RemoteApiUtil.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import hashlib
from datetime import timezone, datetime

import config

if __name__ == "__main__":
print(f"Username: {config.apiServerClientId}")

dt = datetime.now(timezone.utc)
secret = config.apiServerClientSecret + str(dt.month)
password = hashlib.md5(secret.encode("utf-8")).hexdigest()
print(f"Password: {password}")

0 comments on commit d599046

Please sign in to comment.