Difference between Rest Channel and Socket Channel

I am encrypting/decrypting tracker store data with custom tracker store. In Socket Channel Encryption and Decryption are working fine, But in rest channel it is not decrypting the data. Is it because of different channel type?

I am trying to understand the way rasa handles different channel, I checked the documentation but couldn’t make out any difference between Socket Channel and Rest Channel.

Thank you very much!