added cipher.c
slowly integrating, does it work?