bring cipher-type into a more phantomy direction.

also add basic Cipher class