MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / reformatHex

Function reformatHex

hashes/md5.py:25–37  ·  view source on GitHub ↗

[summary] Converts the given integer into 8-digit hex number. Arguments: i {[int]} -- [integer]

(i)

Source from the content-addressed store, hash-verified

23 return newString
24
25def reformatHex(i):
26 """[summary]
27 Converts the given integer into 8-digit hex number.
28
29 Arguments:
30 i {[int]} -- [integer]
31 """
32
33 hexrep = format(i,'08x')
34 thing = ""
35 for i in [3,2,1,0]:
36 thing += hexrep[2*i:2*i+2]
37 return thing
38
39def pad(bitString):
40 """[summary]

Callers 1

md5meFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected