first implement of cipher.