def hash_code(self, code): # Hash the code for secure storage return hashlib.sha256(code.encode()).hexdigest()