String.isdigit#

usencrypt.cipher.String.isdigit(self, end_on_nul=True) usencrypt.cipher._boolean.Boolean#

Checks whether the encrypted string \(E(x)\) contains only encrypted digit ASCII characters.

Parameters

end_on_null (bool) – Indicates whether to terminate when a pad is encountered. Defaults to True.

Returns

An encrypted boolean indicating whether the given self is made of only encrypted digit characters.

Return type

usencrypt.cipher.Boolean

Examples
>>> ue_a = ue.encrypt('5.132')
>>> result = ue_a.isdigit()
>>> result
(0x7f23638d6d00) Boolean: 0x8fa1ec2eaaf8faab8f8c41281d18fdb45705287e1c562a6a0bd32c2de78c62b5
>>> ue.decrypt(result)
False
>>> import usencrypt as ue
>>> ue_b = ue.encrypt('123')
>>> result = ue_b.isdigit()
>>> result
(0x7f23637ef100) Boolean: 0xd110f551a9df47424b3f5221bf74022b5130319a3324afe0192a81dbf617052b
>>> ue.decrypt(result)
True