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
|
# reverse string order
|
||||||
def stringreverse(data):
|
def stringreverse(data):
|
||||||
out= ''
|
return data[::-1]
|
||||||
for x in range(len(data) -1,-1,-1):
|
|
||||||
out += data[x]
|
|
||||||
return out
|
|
||||||
|
|
||||||
# match forward, backward and inverted
|
# match forward, backward and inverted
|
||||||
def domatch(number,binary):
|
def domatch(number,binary):
|
||||||
|
|
Loading…
Reference in a new issue