Use core crypto instead

Closes #18