Scene veteran Zecoxao has released UnDat and Dat tools to decrypt and encrypt the index.dat file on your hacked PS4.
In itself, the set of tools will not be useful for the general population. However index.dat contains the version.txt file, which is apparently a critical component for firmware version spoofing on Sony consoles (at least on PS3 and PS Vita). Specifically, people have been saying that modifying this file is one of the necessary pieces to access PSN services from a hacked console. (Along with X-passphrase, allegedly).
This probably goes without saying, but assuming PS4 firmware spoofers are made available in the future that would let users access Sony’s PSN from a hacked console, I strongly advise against using such tools. They’re in complete breach of Sony’s Terms of Services and could get your account or console permanently banned.
As others have mentioned, if you want the best of both worlds, I strongly suggest you get one console for hacking and another one for everyday gaming.
Download Dat/UnDat for PS4
You can download the tools from Zecoxao’s github here and here respectively.