Dynamic encryption protocol