add encryption funciton supporting 128bit, 192bits, 256bits key size