It's been a while since I've read the Humanure Handbook and I've not practiced many of the techniques in it but it does cover this topic in great detail:
https://humanurehandbook.com/
I believe it is possible you just have to be really careful with how it's treated, especially around vegetables etc.
There's also a natural blackwater treatment system, briefly mentioned in this really great video from one of my favourite Permaculture teachers (EDIT: it's at 46:45), which also happens to be a great introduction to Permaculture if you're interested: https://vimeo.com/95060300