A basic authenication scheme to restistream