All data stored on public blockchains like ethereum is available for public viewing.
All there any libraries, frameworks or solutions, for storing encrypted data inside smart contract data structures.
If the data is encrypted using say shared/AES keys by selective registered users using the dapp, then isnt data privacy ensured, though the physical data might be lying on replicated ethereum full nodes.
Please comment if anyone has information about this topic in general, would like to learn