Initial crypto library (still under work)