adding perfect cipher