Package Crypto :: Package Util :: Module strxor
[frames] | no frames]

Module strxor

Functions
 
strxor(...)
strxor(a:str, b:str) -> str
 
strxor_c(...)
strxor_c(s:str, c:int) -> str
Variables
  __package__ = None
Function Details

strxor(...)

 

strxor(a:str, b:str) -> str

Return a XOR b. Both a and b must have the same length.

strxor_c(...)

 

strxor_c(s:str, c:int) -> str

Return s XOR chr(c). c must be in range(256).