String.clone#

usencrypt.cipher.String.clone(self) usencrypt.cipher._string.String#

Returns a cloned instance of the encrypted string \(E(x)\).

Returns

A cloned instance of self.

Return type

usencrypt.cipher.String

Examples
>>> import usencrypt as ue
>>> ue_a = ue.encrypt('abc')
>>> ue_a
(0x7f6686db2310) String: 0x2e26dc538cfe173637e13d4fe42215ff14fab9acc1ca042045f9b8f2a22fdde80xe3a8d83902c3cbc905cfb92e6adccee1f1d05f01d207d90ec0d282b7516a80970x1599463df3b4400ce911c2b4893c2db5e658d690e9b015ca81e19fd2ad0018c1
>>> ue_b = ue_a.clone()
>>> ue_b
(0x7f6686db2310) String: 0x2e26dc538cfe173637e13d4fe42215ff14fab9acc1ca042045f9b8f2a22fdde80xe3a8d83902c3cbc905cfb92e6adccee1f1d05f01d207d90ec0d282b7516a80970x1599463df3b4400ce911c2b4893c2db5e658d690e9b015ca81e19fd2ad0018c1
>>> ue.decrypt(ue_b)
'abc'