String.capitalize#

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

Returns a new instance of the encrypted string \(E(x)\), where the first encrypted character is capitalized and the rest are changed to encrypted lowercase ASCII characters.

Returns

The capitalized string.

Return type

usencrypt.cipher.String

Examples
>>> import usencrypt as ue
>>> ue_s = ue.encrypt('hello, world!')
>>> ue_cap = ue_s.capitalize()
>>> ue.decrypt(ue_cap)
'Hello, world!'