basic crypto works