edit and compilable version of CrypHaze project