duplicated crypto modules to get CLI working - WILL DELETE WHEN RESOLVED