Fixed cipher factory constant to make encryption work