HNHacker News
TopNewBestAskShowJobs

eliteraspberrie

846 karma · joined September 25, 2013

www.eliteraspberries.com
submissionscomments
eliteraspberrie··on A portable high-resolution timestamp in C++
A minor correction: POSIX only mandates CLOCK_REALTIME and CLOCK_MONOTONIC is optional (POSIX Advanced Realtime Extensions). Linux provides both as well as CLOCK_MONOTONIC_RAW, and some BSD like FreeBSD provide CLOCK_MONOTONIC_PRECISE.

For OS X, use mach_absolute_time, described here: https://developer.apple.com/library/mac/qa/qa1398/_index.htm...

eliteraspberrie··on Lossless audio compression with libpng
To improve the calculation of the autocorrelation, first 'demean' the input sequence by subtracting its mean from it, like so: https://gist.github.com/anonymous/a293bdbfa9133a607dd1

The reason being that autocorrelation (and convolution in general) is meaningful when the input signal is linear time invariant. Read more about that here: https://en.wikipedia.org/wiki/LTI_system_theory#Impulse_resp...

eliteraspberrie··on Statistical shortcomings in standard math libraries (and how to fix them)
I wouldn't have guessed these functions were so popular. I think those people who need them, need them often, but they are very few, so standards committees just ignore their needs.

If I have time this summer, I'll implement the Gamma and Beta functions, and their inverses, with a permissive license.

eliteraspberrie··on Reset the Net Privacy Pack
Gajim supports OTR with a plugin. Both the client and plugin are written in Python.
eliteraspberrie··on Reset the Net Privacy Pack
libpurple is 300,000 lines of poorly written C.
eliteraspberrie··on Reset the Net Privacy Pack
Wondering why we didn't include (insert app here)? Read our criteria for these recommendations.

The page linked for "our criteria" doesn't mention any criteria other than:

We need tools that a broad community of experts can get behind.

I don't know of a single expert that would recommend Pidgin. I strongly recommend against it, whether you believe you are a "specific target of surveillance" or not.

eliteraspberrie··on Toronto MaRS statement by BOD
The Ontario government should be informed that the big, expensive skyscrapers come after the innovation, not before.
eliteraspberrie··on The Swift Programming Language
I started reading the Swift Tour and couldn't stop. It's compiled, and has both functional and object-oriented features, and a nice syntax. I'm sold.

https://developer.apple.com/library/prerelease/ios/documenta...

eliteraspberrie··on Replace TrueCrypt – Candidate alternatives
Development of eCryptfs was financed by IBM.
eliteraspberrie··on Human Rights Advocate Recounts How Iran Tried To Hack Her Email
The German chancellor will not be hanged in Central Park.
eliteraspberrie··on Human Rights Advocate Recounts How Iran Tried To Hack Her Email
The site asked for her email credentials, and she obliged. Many people wouldn't see a problem with Johnboltonoffice.com asking for your password to Google.com. It's a consequence of not knowing how the Internet works.
eliteraspberrie··on Replace TrueCrypt – Candidate alternatives
There is only one free-as-in-beer FDE project that has survived the last decade (loop-AES), out of dozens. The one other survivor (dm-crypt) is backed by serious money (the Linux Foundation). It's safe to assume the odds won't get better in the next decade.

That is, unless we support freely-licensed encryption software, financially, rather than just use it.

eliteraspberrie··on Replace TrueCrypt – Candidate alternatives
I'll mention my theory of what happened with TrueCrypt here, because it's relevant to a search for alternatives.

I believe TrueCrypt was started as a student project, and was no longer worth the effort to the developer(s). For a student or young developer interesting in cryptography, the reward is in the work itself, and in other people using the software. A decade later, though, with less free time, it's much less fun. At that point, a developer could either commercialize their work, or abandon it. TrueCrypt had very little chance of commercial success, since full-disk encryption comes with all new operating systems, so it's been abandoned.

My conclusion is that only for-pay (open-source or not) FDE software can be a viable alternative to TrueCrypt, anything else will eventually be abandoned too. Consider that every project mentioned on this page is based on dm-crypt, part of the Linux kernel, which is supported financially by Intel, HP, and so on. That is a viable, long-term solution, and probably the only one.

But if we want a diversity of cryptography software, we are going to have to start paying for it.

eliteraspberrie··on OpenSSL, OpenSSH and NTP to receive support from Core Infrastructure Initiative
Why does everyone have this aversion to giving the OpenBSD team the funding they deserve?

One reason may be that donations to the OpenBSD Foundation are not tax-deductible in the US.

eliteraspberrie··on Fraudulent trading activity at Mt. Gox
My theory is that Bitcoin is used by the elite in China as just another way of transferring money out of the country. Buying Bitcoin from a Chinese exchange, and selling it on an American exchange, allows you to transfer money between countries, avoiding foreign exchange regulations.
eliteraspberrie··on Show HN: WordPass – password generator giving over 90 bits of entropy
The information theory (mathematical) definition of randomness is explained nicely in Chapter V of An Introduction to Information Theory:

http://www.amazon.com/Introduction-Information-Theory-Symbol...

In the particular case of a series of n equally-probably, independent events, the entropy is given as H = - log 1/n, measured in bits. For example, the entropy of a fair die is - log 1/6 = 2.58 bits per throw.

In this case, the random event is words chosen from a word list. Four words are chosen from fifty thousand, with each word having equal probability of being chosen. So the entropy (measure of randomness) is - log 1/50,000 = 15.6 bits per word, or 62.4 bits per four-word combination. (The script also adds random numbers or symbols, to add up to 90 bits.)

eliteraspberrie··on Free App Lets the Next Snowden Send Big Files Securely and Anonymously
"As soon as the person has downloaded the file, you can just cancel the web server and the file is no longer accessible to anyone," Lee says.

So your recipient would be the only person to download a file of some specific size at some specific time, from a service that only ever served it once. Traffic analysis is how the Tor network is attacked in practice. Unfortunately, Onionshare is more vulnerable to traffic analysis than even the old GnuPG and Dropbox method.

eliteraspberrie··on U.S. announces first criminal charges against foreign country for cyberspying
The European Parliament report cites a single journalist, Nicky Hager. This particular allegation was based on interviews with anonymous French intelligence sources.

Basically, the French government selectively leaked to a New Zealand journalist, to justify retaliation (tariffs at the EU level, which never materialized) against the US government for burning their Saudi deal.

There has never been any credible evidence that US intelligence agencies pass trade secrets to American companies.

eliteraspberrie··on Show HN: End-to-end encrypted email, based in Switzerland
With respect to their servers' location in Switzerland, if you don't live in Europe, that will not benefit you. Even the best of laws require you to actively defend yourself. I for one cannot travel to Switzerland and represent myself in a Swiss court, at least not at a tolerable cost.
eliteraspberrie··on TinySSH is a small SSH server using NaCl, TweetNaCl
The name is a little confusing. The way u32 is used in TweetNaCl, it doesn't have to be exactly 32 bits, only at least 32 bits.
eliteraspberrie··on Plasso: Payments Made Simple
Helium charges 2%: https://gethelium.com/
eliteraspberrie··on Nimrod for C programmers
I think you hit the nail on the head: the problem is education. Generally, a C programmer who took the time to understand integer types and their behaviour won't make mistakes with either signed or unsigned types. But making unsigned types second class only reinforces bad habits (or what I consider bad).
eliteraspberrie··on Nimrod for C programmers
I strongly disagree with the rationale for not supporting unsigned integer types by default. In fact, I think unsigned should be the default, and the advice on the Escher Technologies blog is harmful.

Other than that, Nimrod has been a pleasure to use. If you need a metaprogramming language to generate C, use Nimrod.

eliteraspberrie··on Help EFF test Privacy Badger, our new browser extension for privacy
The matrix visual is genius! I'll be using your extension going forward. Thanks for the great work. You may want to consider setting up a Gittip account or something similar so people have the option of supporting your work.
eliteraspberrie··on Fractals for Fun and Profit
The pseudo-code for cross-correlation implements the naive method, which is O(M*N), M and N being the lengths of the arrays being correlated. I think it might just have been used to illustrate, but just in case, the proper way of computing the cross-correlation is with the FFT, as that is "linearithmic" in time. It's commonly called "multiplication in the frequency domain" or just frequency domain convolution. Basically, take the FFT of both input sequences, multiply them, and take the inverse FFT of the product.

If you're curious, the basis of this algorithm is the convolution theorem: https://en.wikipedia.org/wiki/Convolution_theorem

Here is an example implementation of cross-correlation using the FFT, with NumPy:

http://www.eliteraspberries.com/blog/2013/08/application-of-...

eliteraspberrie··on How Should You Write a Fast Integer Overflow Check?
A good example of an integer overflow leading to a vulnerability was the 2002 vulnerability in OpenSSH: http://www.openssh.com/txt/preauth.adv
eliteraspberrie··on Matt Blaze: My life as an international arms courier (1995)
Interestingly, in Canada, encryption is still considered dual-use technology and sometimes subject to export control (with the main exceptions of: software "generally available to the public"; and all exports to the US). See Category 5, Part 2 of the Guide to Canada's Export Controls:

http://www.international.gc.ca/controls-controles/about-a_pr...

It's really interesting to read what else is on the list.

eliteraspberrie··on Name for OpenSSL fork released
Interestingly, there was a rift between GnuTLS and GNU a couple years ago: http://lwn.net/Articles/529522/
eliteraspberrie··on The Linux Security Circus: On GUI isolation
BTW, Windows is the only one mainstream OS I'm aware of, that actually attempts to implement some form of GUI-level isolation, starting from Windows Vista.

Is GetAsyncKeyState still available in Windows Vista? I'm guessing it is, and processes can still read each others' keystrokes without problem. The MSDN documentation doesn't mention it being deprecated. http://msdn.microsoft.com/en-us/library/windows/desktop/ms64...

(By the way this article is from 2011. It would be interesting to read an update.)

eliteraspberrie··on Safe: Free Easy File System Encryption
That's a good way of doing it. I would have prefered scrypt but PBKDF2 is good enough. (Something changed with HN recently, I get the downvotes too.)
← PreviousPage 3 of 9Next →