An encypter is useless with a decrypter (except in the case of a 1-way encryption, which this clearly is not), so you should code that also.