To texify CSVs you need a CSV Parser.
And while rolling your own crypto may be a terrible idea... rolling your own CSV parser in 10 lines seems much more reasonable than using some library and struggling with dependencies.
I mean, hey, it even seems to be working alright!