clean up crypto API