mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-04 03:58:08 +08:00
simplified findbits.stringreverse()
This commit is contained in:
parent
df1e29bb40
commit
ee0ef5c5d7
1 changed files with 1 additions and 4 deletions
|
@ -43,10 +43,7 @@ def binstring(number):
|
|||
|
||||
# reverse string order
|
||||
def stringreverse(data):
|
||||
out= ''
|
||||
for x in range(len(data) -1,-1,-1):
|
||||
out += data[x]
|
||||
return out
|
||||
return data[::-1]
|
||||
|
||||
# match forward, backward and inverted
|
||||
def domatch(number,binary):
|
||||
|
|
Loading…
Reference in a new issue