Cipher1 class implemented