Pull out cipher/decipher.js and a common file for CipherTypes.