Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RNCryptor/RNCryptor-python
/ to_str
Function
to_str
rncryptor.py:41–45 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
39
return
s.encode(
'utf-8'
)
40
41
def
to_str(s):
42
if
isinstance(s, bytes):
43
return
s.decode(
'utf-8'
)
44
if
isinstance(s, str):
45
return
s
46
47
def
bchr(s):
48
return
bytes([s])
Callers
1
post_decrypt_data
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected