encode abstract method
Encodes the input string using the codec's specific algorithm.
input
The plain text string to be encoded.
Returns the encoded string.
Throws ArgumentError if the input is invalid for this codec. Throws FormatException if encoding fails due to format issues.
Implementation
String encode(String input);