MCPcopy
hub / github.com/borgbackup/borg / bin_to_hex

Function bin_to_hex

src/borg/helpers/parseformat.py:46–47  ·  view source on GitHub ↗
(binary)

Source from the content-addressed store, hash-verified

44
45
46def bin_to_hex(binary):
47 return binascii.hexlify(binary).decode("ascii")
48
49
50def hex_to_bin(hex, length=None):

Callers 15

_build_files_cacheMethod · 0.85
id_strMethod · 0.85
key_filenameMethod · 0.85
__init__Method · 0.85
id_strMethod · 0.85
createMethod · 0.85
_set_idMethod · 0.85
getMethod · 0.85
putMethod · 0.85
deleteMethod · 0.85
_create_filesystemMethod · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by 15

test_AEMethod · 0.68
test_AEADMethod · 0.68
test_plaintextMethod · 0.68
test_bin_to_hexFunction · 0.68
test_key_export_keyfileFunction · 0.68
test_key_export_repokeyFunction · 0.68
test_key_export_qrFunction · 0.68