Giter Club home page Giter Club logo

Comments (13)

kr avatar kr commented on August 17, 2024

Yes, totally makes sense IMO. I've wished for this myself once or twice.

from fernet-go.

fdr avatar fdr commented on August 17, 2024

How would you go about doing it while keeping Fernet's format self-describing? Use of the "version" byte (more like "variant" in this case?)

from fernet-go.

kr avatar kr commented on August 17, 2024

My first thought is to have two separate entry points and require
the user to know a priori which one to use. As you note, the version
byte would not match and/or it would be an invalid base64 encoding
if one used the wrong one, so there's no danger there. But somehow
it feels like making the programmer explicitly choose is more better?
It's what I'd expect anyway.

from fernet-go.

kr avatar kr commented on August 17, 2024

I guess that would be sort of against the "you can't do it wrong" spirit
of fernet though. Open to suggestions. cc @tmaher

from fernet-go.

tmaher avatar tmaher commented on August 17, 2024

I'm weakly opposed to adding it as an option, mostly to prevent option bloat.

@alex - I'm more strongly opposed if pyca isn't going to add it as well.

from fernet-go.

alex avatar alex commented on August 17, 2024

I'd have to think about it, but probably we'd add it as well /cc @dreid.

from fernet-go.

dreid avatar dreid commented on August 17, 2024

I'm +1 on supporting the pre-base64 encoded form.

I assume this would just be for tokens and not affect keys?

from fernet-go.

fdr avatar fdr commented on August 17, 2024

Yeah: tokens only.

from fernet-go.

kr avatar kr commented on August 17, 2024

Though this has crossed my mind, I've never wanted it enough
to even bring it up in conversation before. And I agree with the
desire to avoid option bloat.

Note that one can do it oneself as a workaround. It's not hard
and IIUC not security sensitive to undo the base64 encoding
before storing or transmitting it, then redo it before decrypting.
It's wasteful of CPU, but if the point is to save space, maybe
that's okay.

from fernet-go.

fdr avatar fdr commented on August 17, 2024

How about this:

Before making any detailed decisions, I do have a specific application and lightweight benchmark. I'll hack in binary (aka "does less") fernet and see how much it matters, and post my result.

from fernet-go.

kr avatar kr commented on August 17, 2024

@fdr any results from your performance tests?

from fernet-go.

fdr avatar fdr commented on August 17, 2024

On Tue, Sep 2, 2014 at 1:10 AM, Keith Rarick [email protected]
wrote:

@fdr https://github.com/fdr any results from your performance tests?

Regretfully I had to abandon the project before having the need to complete
them.

from fernet-go.

rafael2k avatar rafael2k commented on August 17, 2024

Hi all. I'm interested in using binary bitstream communication using Fernet. How is the status binary encoding support in Fernet?

from fernet-go.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.