encrypt returns random key