mirror of
https://github.com/bryangerlach/rdgen.git
synced 2026-02-05 05:40:40 +00:00
encryption stuff testing
This commit is contained in:
@@ -10,6 +10,7 @@ For the full list of settings and their values, see
|
||||
https://docs.djangoproject.com/en/5.0/ref/settings/
|
||||
"""
|
||||
import os
|
||||
import base64
|
||||
from pathlib import Path
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
@@ -25,7 +26,7 @@ GHUSER = os.environ.get("GHUSER", '')
|
||||
GHBEARER = os.environ.get("GHBEARER", '')
|
||||
GENURL = os.environ.get("GENURL", '')
|
||||
GHBRANCH = os.environ.get("GHBRANCH",'master')
|
||||
RSA_PUBLIC_KEY = os.environ.get("RSA_PUBLIC_KEY",'')
|
||||
RSA_PUBLIC_KEY = base64.b64decode(os.environ.get("RSA_PUBLIC_KEY_B64",'')).decode('utf-8')
|
||||
PROTOCOL = os.environ.get("PROTOCOL", 'https')
|
||||
REPONAME = os.environ.get("REPONAME", 'rdgen')
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ def generator_view(request):
|
||||
"downloadLink": downloadLink, "compname": compname, "androidappid": androidappid,
|
||||
"uuid":myuuid
|
||||
}
|
||||
hybrid_result = encrypt_payload_hybrid(sensitive_fields, _settings.GH_PUBLIC_KEY)
|
||||
hybrid_result = encrypt_payload_hybrid(sensitive_fields, _settings.RSA_PUBLIC_KEY)
|
||||
data = {
|
||||
"ref": _settings.GHBRANCH,
|
||||
"inputs":{
|
||||
|
||||
Reference in New Issue
Block a user