String.split#

usencrypt.cipher.String.split(self, delimiter=None, count=- 1)#

Returns a list of the words in the encrypted string \(E(x)\), separated by the delimiter character.

Parameters
  • delimiter (usencrypt.cipher.Char) – The character dividing the string into split groups. Defaults to None. If None, the delimiter is set to ' '.

  • count (int) – The number of times to split the string. Defaults to -1 which splits all the items.

Returns

The list of divided strings.

Return type

list of usencrypt.cipher.String

Examples
>>> import usencrypt as ue
>>> test = ue.encrypt("This is a test string.")
>>> test = test.split()
>>> test
["This", "is", "a", "test", "string."]