String.cipher_length#

usencrypt.cipher.String.cipher_length(self)#

Returns the actual length of the encrypted string \(E(x)\) regarless of the amount of padding characters it contains.

Returns

An encrypted integer representing the actual length of the encrypted string.

Return type

usencrypt.cipher.Int

Note

The string may get padded different points of the data processing to preserve security.

Examples
>>> import usencrypt as ue
>>> ue_s = ue.cipher.String('USEncryption')
>>> ue_length = ue_s.cipher_length()
(0x7f2487023190) Int: 0x94012ab69c2b6abb081b357600812126adcb20c3691ee66b4f2333bcc578fe0e
>>> ue.decrypt(ue_length)
12