Giter Site home page Giter Site logo

Comments (11)

manvari avatar manvari commented on August 22, 2024

zerobinpaste can use different key sizes, even though the default size is 48 bits. This means that 0bin does support different key sizes; the code needs to be looked into to find what actually handles that.

EDIT: it's sjcl: the relevant code is here and is pretty well highlighted/explained in this commit.

from 0bin.

securitygeneration avatar securitygeneration commented on August 22, 2024

Thanks iceTwy, I missed that bit of the script. The default value should really be "zerobin.makeKey(256)", otherwise people are running a vulnerable install out of the box. If anything, this should be made clear in the FAQ or README.

from 0bin.

sametmax avatar sametmax commented on August 22, 2024

Doh, so much for having several accounts :(

Let's say nobody has seen anything ^^

So, make the PR, I'll accept it.

from 0bin.

manvari avatar manvari commented on August 22, 2024

I'm all for it, but there's one thing that puts me back: a 256-bit key is unbelievably long, and the resulting URL will also be long. This isn't exactly convenient if you intend to share the URL (which is the whole point of having a paste service).

from 0bin.

securitygeneration avatar securitygeneration commented on August 22, 2024

If you want to share the URL, use a URL shortener. Security > Convenience ;)

from 0bin.

sametmax avatar sametmax commented on August 22, 2024

Or just change the settings in your own instance.

Le mar. 08 avril 2014 17:34:58 CEST, securitygeneration a écrit :

If you want to share the URL, use a URL shortener. Security >
Convenience ;)


Reply to this email directly or view it on GitHub
#62 (comment).

from 0bin.

manvari avatar manvari commented on August 22, 2024

@securitygeneration: "url shortening was a fucking awful idea" - ArchiveTeam

from 0bin.

securitygeneration avatar securitygeneration commented on August 22, 2024

@sametmax I did. But am pointing out that you talk about encrypting using AES256 when in reality you are using AES48. At the very least inform the users.

@iceTwy I agree that URL shortening was a bad idea from the greater web's perspective, but for pastes whose URLs will expire within a matters of days/months, it largely doesn't matter.

from 0bin.

sametmax avatar sametmax commented on August 22, 2024

@securitygeneration, I meant that for @iceTwy
https://github.com/iceTwy. I agree we should provide a better security
by default and let people set up a smaller key for convenience.

In fact, it was the original settings, then it got changed. I don't
remember what was the rational, but it does seem logical to reverse it.

Le 08/04/2014 17:40, securitygeneration a écrit :

@sametmax https://github.com/sametmax I did. But am pointing out
that you talk about encrypting using AES256 when in reality you are
using AES48. At the very least inform the users.

@iceTwy https://github.com/iceTwy I agree that URL shortening was a
bad idea from the greater web's perspective, but for pastes whose URLs
will expire within a matters of days/months, it largely doesn't matter.


Reply to this email directly or view it on GitHub
#62 (comment).

from 0bin.

Natim avatar Natim commented on August 22, 2024

We should definitely reverse this, the key should be 32 bytes which is 256 bits, we should also address comment #43 so we can have both security and shorter urls.

from 0bin.

sametmax avatar sametmax commented on August 22, 2024

Ok, we are starting to get some activity here :)

Any PR ?

Le ven. 20 juin 2014 13:54:22 ICT, Rémy HUBSCHER a écrit :

We should definitely reverse this, the key should be 32 bytes which is
256 bits, we should also address comment #43
#43 so we can have both
security and shorter urls.


Reply to this email directly or view it on GitHub
#62 (comment).

from 0bin.

Related Issues (20)

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.