started implementing the crypto with the help of some crypto libraries