Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/Tencent/CodeAnalysis
/ encrypt
Method
encrypt
server/projects/main/util/cipher.py:31–35 ·
view source on GitHub ↗
对字符加密
(self, char, key)
Source
from the content-addressed store, hash-verified
29
return
chr((ord(char) - ord(base) + key) % 26 + ord(base))
30
31
def
encrypt(self, char, key):
32
""
"
33
对字符加密
34
""
"
35
return
self.__crypt(char, key)
36
37
def
decrypt(self, char, key):
38
""
"
Callers
5
run
Method · 0.45
send_result_to_server
Method · 0.45
modify_task_request
Method · 0.45
encrypt
Function · 0.45
encrypt
Function · 0.45
Calls
1
__crypt
Method · 0.95
Tested by
no test coverage detected