String.endswith#
- usencrypt.cipher.String.endswith(self, other) usencrypt.cipher._boolean.Boolean #
Checks whether the encrypted string \(E(x)\) ends with another string.
- Parameters
other (
usencrypt.cipher.String
orstr
) – The encrypted string to be searched for.- Returns
Indicates whether whether
self
ends withother
.- Return type
- Examples
>>> import usencrypt as ue >>> ue_a = ue.encrypt('abc') >>> ue_result = ue_a.endswith('bc') >>> ue_result (0x7ffbb6541070) Boolean: 0x163d84a4eafd2c817335db845cb9329a84cf56021d0a2ead17fa6125408d9f51 >>> ue.decrypt(ue_result) True