MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / create_network_id

Method create_network_id

network_intelligence.py:169–173  ·  view source on GitHub ↗

Create a stable network identifier from SSID

(self, ssid: str)

Source from the content-addressed store, hash-verified

167 return "default_network"
168
169 def create_network_id(self, ssid: str) -> str:
170 """Create a stable network identifier from SSID"""
171 # Create a hash-based ID that's stable but doesn't expose the actual SSID
172 network_hash = hashlib.md5(ssid.encode()).hexdigest()[:8]
173 return f"net_{network_hash}"
174
175 def update_network_context(self):
176 """Update current network context and handle network changes"""

Callers 1

Calls 2

hexdigestMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected