1.add implemention of encrypt.
2.cast of pointers type