Encrypt plaintext and populate self.ciphertext

Property definitions

crypto $ Cipher :: encrypt
	# Encrypt plaintext and populate `self.ciphertext`
	fun encrypt is abstract
lib/crypto/xor_ciphers.nit:59,2--60,24

crypto $ SingleByteXorCipher :: encrypt
	redef fun encrypt do
		var key_bytes = new Bytes.with_capacity(1)
		key_bytes.add(key)
		ciphertext = plaintext.xorcipher(key_bytes)
	end
lib/crypto/xor_ciphers.nit:74,2--78,4

crypto $ RepeatingKeyXorCipher :: encrypt
	redef fun encrypt do
		assert key.length > 0
		ciphertext = plaintext.xorcipher(key)
	end
lib/crypto/xor_ciphers.nit:94,2--97,4