Comments (13)
Yes, totally makes sense IMO. I've wished for this myself once or twice.
from fernet-go.
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.
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.
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.
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.
I'd have to think about it, but probably we'd add it as well /cc @dreid.
from fernet-go.
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.
Yeah: tokens only.
from fernet-go.
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.
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.
@fdr any results from your performance tests?
from fernet-go.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fernet-go.