MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / profiler_encrypt_optional

Function profiler_encrypt_optional

Scripts/ButSystem.py:15167–15185  ·  view source on GitHub ↗

profiler_encrypt_optional. Internal helper function. This docstring was added automatically to improve maintainability. Args: opt: Parameter. Returns: Varies.

(opt: Dict[str, str])

Source from the content-addressed store, hash-verified

15165 for r in rows:
15166 nick = r["username"]
15167 try:
15168 if r["nickname_enc"]:
15169 nick = aesgcm_decrypt_text(r["nickname_enc"]) or nick
15170 except Exception:
15171 nick = r["username"]
15172 items.append({
15173 "username": r["username"],
15174 "nickname": nick,
15175 "lat": float(r["lat"]),
15176 "lon": float(r["lon"]),
15177 "accuracy": float(r["accuracy"]) if r["accuracy"] is not None else None,
15178 "updated_at": r["updated_at"]
15179 })
15180 conn.close()
15181 return jsonify({"ok": True, "items": items})
15182
15183
15184# ---------------------------
15185# Groups (chat + admins)
15186# ---------------------------
15187
15188def all_usernames() -> List[str]:

Callers 4

profiler_combineFunction · 0.70
profiler_createFunction · 0.70
profiler_updateFunction · 0.70

Calls 1

aesgcm_encrypt_textFunction · 0.70

Tested by

no test coverage detected