modernize crypto example