Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- This program just helps store the RFID Cards data into a binary file which will not be normally readable to a user using basic text editors.
- Written by- Dhruva for BP
- """
- some_bytes = bytearray(b'\xb3\xad\xc0\xa3')
- file = open("rfidBinDatabase", "ab")
- # Write bytes to file
- # some_bytes = bytearray(byte_arr)
- immutable_bytes = bytes(some_bytes)
- # file.seek(file.tell() + 4)
- file.write(immutable_bytes)
- file.close()
- # byte_arr = bytearray(b'\x83i\xbe\xa3')
- # file = open("rfidBinDatabase", "ab")
- # # Write bytes to file
- # some_bytes = bytearray(byte_arr)
- # immutable_bytes = bytes(some_bytes)
- # # file.seek(file.tell() + 4)
- # file.write(immutable_bytes)
- # file.close()
- some_bytes = bytearray(b'\x03U\xd5\xa3')
- file = open("rfidBinDatabase", "ab")
- # Write bytes to file
- # some_bytes = bytearray(some_bytes)
- immutable_bytes = bytes(some_bytes)
- # file.seek(file.tell() + 4)
- file.write(immutable_bytes)
- file.close()
- some_bytes = bytearray(b'\x03\x83\xb7\xa3')
- file = open("rfidBinDatabase", "ab")
- # Write bytes to file
- # some_bytes = bytearray(some_bytes)
- immutable_bytes = bytes(some_bytes)
- # file.seek(file.tell() + 4)
- file.write(immutable_bytes)
- file.close()
- some_bytes = bytearray(b'3\x17\xc2\xa3')
- file = open("rfidBinDatabase", "ab")
- # Write bytes to file
- # some_bytes = bytearray(some_bytes)
- immutable_bytes = bytes(some_bytes)
- # file.seek(file.tell() + 4)
- file.write(immutable_bytes)
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement