crypto :: Cipher :: encrypt
self.ciphertext
# Encrypt plaintext and populate `self.ciphertext` fun encrypt is abstract
redef fun encrypt do var key_bytes = new Bytes.with_capacity(1) key_bytes.add(key) ciphertext = plaintext.xorcipher(key_bytes) end
redef fun encrypt do assert key.length > 0 ciphertext = plaintext.xorcipher(key) end