Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ _base10_to_85
Function
_base10_to_85
ciphers/base85.py:8–9 ·
view source on GitHub ↗
(d: int)
Source
from the content-addressed store, hash-verified
6
7
8
def
_base10_to_85(d: int) -> str:
9
return
""
.join(chr(d % 85 + 33)) + _base10_to_85(d // 85)
if
d > 0
else
""
10
11
12
def
_base85_to_10(digits: list) -> int:
Callers
1
ascii85_encode
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected