The two countries will share information, technology and resources while agreeing not to hack one another