MCPcopy 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

runMethod · 0.45
send_result_to_serverMethod · 0.45
modify_task_requestMethod · 0.45
encryptFunction · 0.45
encryptFunction · 0.45

Calls 1

__cryptMethod · 0.95

Tested by

no test coverage detected