Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

WhatsApp is controlled by Facebook, and they already centralize a gigantic amount of personnal data. Their moral track record has also been consistently bad. They were part of the PRISM program. They meddle with politics. They are rich and powerful.

The chinese WeChat example shown us how convenient a popular chat app coupled with a payment system can be, and how quickly an entire society can adopt it.

I think this feature should be considered as a threat to users, and be avoided, while actively and strongly, but respectfully, advising people around us to do the same.


> They were part of the PRISM program.

This is highly deceptive framing. PRISM was a passive cable tapping program. Companies weren't "participating" in it as much as they were victims of it.

Facebook was targeted by PRISM and rapidly worked to mitigate as soon as they knew about it, just like every other cloud service provider that was victimized by cable tapping under that program.


I wish.

But for what we know, they didn't have direct access, they made requests to the companies.

Wikipedia states "PRISM collects stored internet communications based on demands made to internet companies".

https://en.wikipedia.org/wiki/PRISM_(surveillance_program)#E...

CNET says:

"Sources challenge reports alleging National Security Agency is 'tapping directly into the central servers.' Instead, they say, the spy agency is obtaining orders under process created by Congress."

https://www.cnet.com/news/no-evidence-of-nsas-direct-access-...

Which makes sense.

Why pay the cost for a huge and complicated setup when a cheap piece of paper can do the job, and the gag order make it as secret?


My paypal account cannot receive money - send only because of my location. Consequently, I've been shut out of many legitimate opportunities. Got scammed multiple times as a freelancer both by the job providers and the platform.

Can't wait for this to available in my location. "Threat to users" be dammed.


Receiving money as a freelancer can be challenging, but given how dangerous it is to give FB more power, I think it's worth spending a bit of time in finding alternatives.

Personally I use https://stripe.com/.

Last customer was in India, and it was hard for him to wire me money. Stripe made it a breeze, I created an invoice, enter his mail, and he just paid using his credit card.

The fees are a bit high, so the question is more "how much inconvenience do I think is worth this moral stand?".

And there is no universal answer to this question, since moral is arbitrary, and I don't accept the inconvenience in many other avenues.

Good luck


Facebook is actively hostile to privacy and security, including by building black hat exploits for open-source software and not reporting it to the developers afterwards and quietly shelving E2EE for Messenger (rumor mill says because of LEA influence or pending water down / walk back).

I have no doubt there are innumerable FB employees who will defend privacy and security. Zuckerberg doesn't care, and will sell his users out the second it impacts the bottom line or offends the government FB is in bed with (go listen to the hot mic recording between Zuckerberg and Angela Merkel, for example).


We knew who Zuckerberg were since the "They trust me. Dumb fucks" line was reported.

FB behavior didnt show any reason to believe he would have had a change of heart ever since.


Just because you care and are right about the advice doesn't mean those needing the advice care enough to receive it


Yes, when you have a lot of difficulties in your life, it's hard to add to it the burden of thinking about the virtual services you use.

It's my privileged position to be able to do so.

Doesn't mean I should not advice for it though. It's an important message, it should be spread, as long as we are not guilt tripping people.


> They were part of the PRISM program.

Do you think that they longer are part of it or its successor?


I think it's very likely, given the Patriot Act has been renew several times since 9/11 despite the fact it was supposed to be a temporary measure.

But I doubt we'll get another Snowden anytime soon to prove it.


Can you provide a source on "FB being a part of PRISM"? I can't find anything concrete to substantiate the claim.


The main support for this claim are the leaked documents by Snowden that were pusblished in The Washington Post and The Guardian in 2013.

You can find an archive of the article here:

https://www.webcitation.org/mainframe.php

Thankfully, the NSA slides were directly included by wikipedia, so we don't have to hunt them down:

https://en.wikipedia.org/wiki/PRISM_(surveillance_program)#/...

We can see that PRISM targets (or should I say, partners) list contains at least: Microsoft, Yahoo!, Google, Facebook, YouTube, AOL, Skype Apple.

As usual, this is what we know. Meaning what could be extracted, proven, communicated and accepted by the public. A pretty big filter already.


Wouldn't it be simpler to just use ublock origin?


I haven’t figured out how to run ublock on my phone.


On android, one can use facebook in the firefox mobile browser instead of the app. Firefox mobile does allow ublock origin, and it's trivial to add a home shortcut to any web app.

This has other advantages: facebook web site can't ask for a 1000 permissions or to be updated regularly, won't run in the background eating memory and battery and this will limit the disk space it can eat.

You're paying the price with a less integrated UI, yet given the pros, it may be worth it.


Or use brave browser. Or use an Android app called Virtual Hosts that allows you to use a custom hosts file to block ads.


Exactly. Basically, let's not expect any GAFAM to have our interest in mind and just do it ourself.


I’m on iOS so this isn’t an option. There are tradeoffs, but I rarely use Facebook and it’s one of the few native apps I’d rather use than the browser interface.


ublock hasn't been able to block facebook ads for me for several months at least.


ublock or ublock origin?


origin. I didn't realize that the original ublock even still exists.

I also have every built in list enabled except for regional lists.


Good, let the people using github for fun leave.

Github is not meant to be fun, it's meant to be like a pen.

A good pen can be enjoyable. Beautiful. You can feel attachement to it.

But it is not built to be played with. By that I mean it's not its primary function, even if a creative or bored mind can use it for that.

A good pen fullfills its intended purpose when it disapears from your mind while you use it, yielding to the writting that should be the center of your attention.

I don't think about github when I code. I just use it.


A lot of people (who may not even be professional programmers) are using GitHub for their hobby, i.e. "for fun". I don't think this is an invalid use case.


If you write for your hobby, the writing is your hobby, not the pen.

Nobody said, "I can't wait to click on githubs buttons!"

But they might have said, "I can't wait to make this code available".


Sure, but Github is not only the pen, but also the publisher. People create things for others to use, not to be ignored


So do I, and I dread every second I have to interact with that horrible site. A pen does not spam you with "trending" stuff, rearranges its interface regularly or track your activity for the whole world to see.

Before the usual "just leave" comments: GH is a monopoly and one can be forced to use it, unless leaving includes leaving projects or even jobs.


Size


How much? One of the crypto libraries cited in the comments is about 10x the size of SJSC.

Besides, as an avid use of Signal, Wire, Bitwarden, and other e2e encrypted tools, I would GLADLY download a larger but superior encryption tool that is compiled to WASM instead of relying on JS.


SJCL is 6.4KB gzipped, libsodium is 188KB.

If one plans to use the lib in the browser, it makes a huge difference.

Also, I'm not a crypto expert by any mean, but SJCL seems higher level, and hence, easier to use. Not to mention harder to missuse.

Projects like https://0bin.net have been using it for 7 years, with 500000 visitors in the last few months, so I'd say it's pretty battle tested too.

Not nearly has much as libsodium, of course. But I wouldn't discard SJCL, I think it has a place.


That's a fair point, to some extent. If you're specifically looking to perform symmetric encryption on a string with a string-encoded password, then yes, SJCL is easier to use.

The documentation is centered around that one simple example, and the library doesn't seem to do a lot else (at least through a high-level API). I also have a problem with NaCl/Sodium forcing users to handle nonces, rather than handling that detail internally by default. Besides that, Sodium isn't particularly more difficult to use than SJCL; the whole point is that it's an easy-to-use high-level interface that's hard to misuse.

I would also note that SJCL's defaults are a bit dated (CCM vs GCM, 128-bit vs 256-bit, PBKDF2 vs a memory-hard KDF like scrypt or Argon2). Additionally, being pure JS would raise concerns about side channel attacks more so than WebAssembly (like libsodium.js) or native code (like WebCrypto).

I'm sure there are simple use cases where SJCL provides some value, and I'm not saying data and applications that depend on it out in the wild should necessarily be considered already compromised, but I'd struggle to think of a situation where I would consider using it in a new project today, over either libsodium or nothing at all / just TLS.


How does it compare to https://tweetnacl.js.org ? That's 7KB minified and gzipped.


TweetNaCl.js is great. I'd go with that if you really need something smaller than libsodium.

Presumably it shares the downsides of TweetNaCl ("doesn't wipe internal buffers [...] [and] has two harmless instances of undefined behaviour"[1]; among, I expect, other shortcuts that may make it less optimal/safe than NaCl), and the fact that it's pure JS adds additional side channel attack surface, but those may be acceptable risks depending on your threat model. They're certainly the least of your concerns if you're just using it in a web page like 0bin.net.

1: https://monocypher.org/why


Never tried it


It's way lower level, and easier to missuse.


The only low-level thing I noticed about the native Web Crypto APIs is its reliance on typed arrays. The speed difference is night and day as the native stuff can be hardware-accelerated by dedicated CPU instructions.

Browser support is very good: https://caniuse.com/#feat=cryptography

Documentation is also very good: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypt...

In terms of "ease of misuse" it's debatable. One of the biggest default security improvements with Web Crypto is that *cryption keys are _not readable by JS_ once instantiated - they can only be used by the cryptographic functions (unless you explicitly make them exportable). This is a subtle but very important defense against certain drive-by attacks that could dump loaded keys from whatever non-native JS crypto library you might be using.

In general I don't think it's safe to be using crypto at all outside of basic stuff like password hashing if you don't have a basic understanding of concepts like salt lengths, block cipher modes, hasher output sizes, etc. so I don't really agree with the "easier to misuse" statement. Some library that holds your hand more isn't going to significantly make things safer.


I agree that Web Crypto has a lot to offer. I use it in my latest project.

In terms of it being easy to misuse, I think that applies to cryptography in general, but there are some gotchas lingering in javascript.

Self blog promoting. I just put this out a few days ago on this very subject. https://pritact.com/blog/posts/crypto-mistakes-part-1.html


> One of the biggest default security improvements with Web Crypto is that *cryption keys are _not readable by JS_ once instantiated - they can only be used by the cryptographic functions (unless you explicitly make them exportable). This is a subtle but very important defense against certain drive-by attacks that could dump loaded keys from whatever non-native JS crypto library you might be using.

That's a really nice feature. This should be better advertised. I wasn't aware that Web Crypto was even a thing.


Yes, that kinda HSMish model of non-extractable keys is a very nice touch. I really wish they would add Argon2 though. PBKDF2 is still a valid choice but there are a lot of HW optimized solvers out there for it.


Same.

At first I though "this must be a joke", but then I though, "well, it can make sense in some contexts".

And now I don't know if I'm fool or not.


My brother loved this text and offered it to me in the form of a book.

Reading it, I was disapointed. It paints the support from Rike, an experienced and depressed poet, to a young and depressed one.

While I can perceive the moral aid it can bring, I didn't benefit from it. It's full of never desmontrated general advices with no given first step to be applied, and often, not even practical applications.

He is a poet after all, and those lines are not meant to be a self help book.

So sure, they are well written, the author can relate to the human condition, and the particular suffering of the receiver. But no matter how you present it, hearing "follow your passion", "don't listen to critics" and "that's life" once more is not adding anything to my current state of understanding of the world.

One could argue that it's more of an aesthetic exercice, and if you look at it that way, it's a success. The prose is touching and clear.

You could also say that the content will speak more to people struggling with the process of art, or just being true to yourself. However, the author offers descriptions, weak analysis, and no solutions. He admits himself that he is still stuck at the same level.

If one craves empathy, or to ear that somebody shared the same hardship, I imagine it can be therapeuthic.

But I learned little from those letters, didn't enjoy it, and didn't benefit their from support.

Maybe you will. It's a short book, so it's not a big time sink.

If you read the first paragraphs and don't feel like carring on, you don't need to go further. It doesn't transform into something different on the way.


Specific actionable bit: "... as if no one had ever tried before, try to say what you see and feel and love and lose. ... avoid those forms that are too facile and ordinary ... write about what your everyday life offers you; describe your sorrows and desires, the thoughts that pass through your mind and your belief in some kind of beauty. ... use the Things around you, the images from your dreams, and the objects that you remember."

tl;dr "c'est en forgeant qu'on devient forgeron"

Edit: one exercise from soviet education (no idea if this is still done in modern russia) I'd think worth stealing is that the teacher would pick a selection of famous lines out of a poem, and ask the class to write their own verses around one of them.

If I remember the story correctly, the chorus to Leningrad's "In [St.] Peter[sburg] we booze" was inspired by a line "Peter — endure, endure" from a classical russian poem. https://www.youtube.com/watch?v=1ugivNRYfjc


This is a great exercice.

I found that it works great in programming too: take a very beautifully crafted code, remove some bits, and ask the students to fill in the blanks, or wrap something around it.

The students then gain many things out of it:

- they practice reading someone else code

- they have to understand a problem to solve from context

- they get to craft a solution to that problem

- they don't have to start "from scratch", which is easy to do for simple problems, but hard as soon has you dwelve into advanced concepts

Above all, like the soviet education exercice, one untold benefit is that they get to see the beautiful code itself. It's not only inspiring and driving their efforts, it builds taste.


Simple advices to not take criticism too close to your heart is probably a pretty universial recommendation. Not only for writers, for developers too. Everyone can fail at that and I think reiterating this advice is help itself.


You still need to test the abstraction.


Because of the nature of Python, using importlib.reload() is going to lead to terrible bugs at some point. Use importlib.reload() only in the shell, for convenience.

If you want autoreload for dev (e.g: like django dev server), better restart the entire process.

There is a 7 years old project that can help you with that called watchdog:

    https://pythonhosted.org/watchdog/
It's a library that uses the fastest way available (e.g: inotify,kqueue...) to react to file changes (you can filter by types such as create, delete, write, etc) and triggers whatever code you want, passing you the metadata.

If you just want something very simple, you don't have to code, you can install watchdog with its optional watchmedo dependancy:

    pip install watchdog[watchmedo]
It will give you the watchmedo command, that lets you do something like this:

    watchmedo shell-command --patterns="*.py" --recursive \
    --command='python your_script_to_rerun.py' .


If you are working on code that runs a web server or some other service that is generally a long running application, take a look at hupper: https://docs.pylonsproject.org/projects/hupper/en/latest/

It is built specifically to restart things like servers as it was implemented for the Pylons Project (Pyramid web framework).


Does hupper can restart on changes to non python files ?


There is an API to pass it non-python files (so that alongside your Python app it can watch your configuration files for instance/HTML files).

However it does not work for just watching a directory + running a command, it is specifically for watching Python code.


entr[1] is another good option.

[1]: http://eradman.com/entrproject/


Yes but unfortunatly, you have to compile it for many systems yourself. And if you want to use it from Python (not from the command line), you need binding.

On the other hand, it's probably more performant than watchdog if you have a lot of files and need to fallback on manual watching.

Plus, if you are not a Python person, you may not want to use pip.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: