Skip to content

branca decode does not handle binary data #10

@rhizoome

Description

@rhizoome
  1. Take another branca implementation (eg. pybranca)
  2. Encode binary data
f = Branca(fromstring(key))
ct = f.encode(b"\x80")
  1. Pass ct do decode in this implementation

-> it will return b'\xef\xbf\xbd'

The spec allows binary data:

..... serialized by MessagePack or Protocol Buffers. from branca.io

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions