Cipher applicator in scala, just applies the key to a text