Why not HMAC?
this is simpler
Please Login to reply.
there is a good reason cryptography is not simple
do you have a preimage attack on sha256?
no. but there is hmac (enforcing clear separation of key/data) and I cannot see why you do not want to use it