written basic binary jwt based on web implentation