How to protect or store shared key

I was confused about how to store or protect shared key because they access if anybody gets shared key
are you any suggestion about this ?