0
$\begingroup$

This question already has an answer here:

Lets say alice is trying to send data to bob , should alice first hash the data and then encrpt or vice versa

$\endgroup$

marked as duplicate by Maarten Bodewes encryption Jul 31 at 13:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    $\begingroup$ Note that if you'd use an AEAD scheme then the decision has been made for you. Note that you should also protect the IV and possibly other information that cannot / doesn't need to be encrypted (the IV is protected automatically in AEAD schemes). $\endgroup$ – Maarten Bodewes Jul 31 at 13:34