Neither string or byte array are good solutions from a security perspective because they can be abused in certain kinds of DOS or fuzzing attacks. I like the idea of a specific implementation.
On Monday, January 11, 2021 at 7:44:14 AM UTC-5 [email protected] wrote: > > I saw a pretty good suggestion in this issue thread: Provide support for > UUID type (a.k.a. GUID) #2224 > <https://github.com/protocolbuffers/protobuf/issues/2224> @*gmabey > <https://github.com/gmabey> *suggested to make use of the layout > presented in RFC4122 section 4.1.2, @*billpoole-mi > <https://github.com/billpoole-mi> *then further expanded upon that idea > by providing a possible implementation > <https://github.com/protocolbuffers/protobuf/issues/2224#issuecomment-756065336> > > for that approach. > On Thursday, 12 January 2017 at 00:06:53 UTC+1 Bo Yang wrote: > >> I recommend bytes field. If you use string, it won't accept non-utf8 >> character. >> >> On Wed, Jan 11, 2017 at 2:35 PM <[email protected]> wrote: >> >>> Late answer, but I would have recommended string. Keeps it human >>> readable and also, I suppose, not have to be concerned with endian order. >>> >>> On Monday, May 2, 2016 at 10:27:30 AM UTC-7, Osman Ali wrote: >>>> >>>> Looking use a 128 bit uuid according to rfc4122. For Proto3 should use >>>> bytes type? >>>> >>>> So: >>>> >>>> message SendIdentifier { >>>> bytes user_uuid = 1; >>>> } >>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Protocol Buffers" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/protobuf. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/1c00122b-5785-45fc-955f-ac08eae9bf4en%40googlegroups.com.
