MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / xor

Function xor

Python/des.py:110–117  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

108
109
110def xor(a, b):
111 ans = ""
112 for i in range(len(a)):
113 if a[i] == b[i]:
114 ans = ans + "0"
115 else:
116 ans = ans + "1"
117 return ans
118
119
120# Table of Position of 64 bits at initial level: Initial Permutation Table

Callers 1

encryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected