Encrypting datapack which can still be used by Minecraft

Hey i am creating a 1.16.1 Map, in which i want to implement a lottery/gamble system with coins. I already did that before but on servers, where nobody can access e.g. a "coins" scoreboard obj. I wanted to ask you guys if there is any way to encrypt a datapack so that it can't be accessed by players which are downloading the map. Minecraft should ofc still be able to access the datapack. A friend of mine told me its possible to encrypt resource packs with PackSquash so maybe there is a way for datapacks too :)

Continue to help post