class_docstr: Encrypts an input string using binary substitution (called XandY in Ciphey) in which
  first, the input string is converted to its binary representation and then the 0s and 1s
  of the binary string are replaced with any two characters.
  - flip: Which of the two possible rotations of the substitute characters is used?
  - randomize: If True, random spaces are inserted into the cstring, which Ciphey can handle.
  - key: Which two characters are used to represent the 0s and 1s?
class_docstr_tok: ["Encrypts","an","input","string","using","binary","substitution","(","called","XandY","in","Ciphey",")","in","which","first",",","the","input","string","is","converted","to","its","binary","representation","and","then","the","0s","and","1s","of","the","binary","string","are","replaced","with","any","two","characters",".","-","flip",":","Which","of","the","two","possible","rotations","of","the","substitute","characters","is","used","?","-","randomize",":","If","True",",","random","spaces","are","inserted","into","the","cstring",",","which","Ciphey","can","handle",".","-","key",":","Which","two","characters","are","used","to","represent","the","0s","and","1s","?"]
code: def encrypt(self):
      self.ctext = self.to_binary().replace(" ", "")
  
      if self.key:
          one, two = self.key[0], self.key[1]
      else:
          one, two = random.choice(self.ASCII), random.choice(
              self.ASCII
          )
  
      self.ctext = self.ctext.replace(str(int(self.flip)), one).replace(
          str(int(not self.flip)), two
      )
      self.ctext = (
          self.randomizer() if self.randomize is True else self.ctext
      )
  
      return self.ctext
  
file_path: Ciphey/tests/lukas.py
imports: import random
  import cipheydists
label_desc: Use image node_id 4 for calling the XY_encrypt obj's underlying member method code with example usage: obj.encrypt() and returns: self