Fastest bitwise xor between two multibyte binary data variables

后端 未结 7 1773
耶瑟儿~
耶瑟儿~ 2021-01-02 01:05

What is the fastest way to implementat the following logic:

def xor(data, key):
    l = len(key)

    buff = \"\"
    for i in range(0, len(data)):
        b         


        
7条回答
  •  清酒与你
    2021-01-02 01:32

    Not tested

    Don't know if it's faster

    supposing that len(mystring) is a multiple of 4

    def xor(hash,mystring):
        s = struct.Struct("

提交回复
热议问题