Security & debugging

Added crypto,
permanent error throwing when debug mode is on