Showing posts sorted by relevance for query encryption. Sort by date Show all posts
Showing posts sorted by relevance for query encryption. Sort by date Show all posts

Sunday, January 30, 2011

The Government Has Shut Down the Internet – Part Three

Sure, You're Paranoid, But Are You Paranoid Enough?

Before we start, and in keeping with the subtitle, there's something I neglected to mention.  When you get your amateur radio license, you are given a call sign by the FCC, which you are required to identify your transmissions with.  The amateur community is a very open community, and often use their calls on everyday postings and all sorts of places.  Your call, though, is in a national database, and with websites like QRZ.com and several others, if someone has your call, they have your address and even a satellite photo of your house, with no additional research required.  This isn't entirely new: the concept of getting an address for anybody's call dates to the earliest days of ham radio when “callbooks” were published.  These were alphabetical listings of every ham in the US (or the world) with a mailing address.  Usually their home address.  Nowadays, instead of phonebook-like compilations, callbooks are published on CD ROM and sold at every hamfest.  Many hams, especially newbies, use this to send each other confirmation cards when they talk to each other on the radio. 

Likewise, hams are well known for sitting on the air in discussions with people and telling each other they're going away for a while or other personal details.  While the guy on the other end is probably not an issue, anyone with a radio can listen in on what you're saying.  I'm not sure that it has happened, but it would be simple enough for criminals to get a scanner, hear a local say he's going on vacation, look up the call, get the address and come rob the place while the ham is away. 

With that out of the way, let's get to today's big topic, privacy. 

Would you leave your bank account number lying around?  How about your credit card numbers?  Would you send an email to someone with all of these numbers?  How do you protect that information online or on a radio network when you can't very well put a thick envelope around it? 

Welcome to the world of encryption.  People tend to talk about “secret codes”, the stuff of spy movies and books, but encoding something is not the same as encrypting it.  The root word in encryption is crypt, or hidden.  When you encode things, you simply change their language; when you encrypt something, you attempt to hide its meaning.  For example, any language is a coding of symbols, and in typing this, I'm encoding my thoughts into a computer code (ASCII) that can be read on your terminal.  The difference is subtle, but it matters - especially in legal context.  Some systems prohibit encryption, or “non-standard” codes.  I could transmit the phrase, “the wheat is ready for harvest” in plain English to someone who knows that I mean, “I've planted the evidence” and it is encoded, not encrypted.  If, instead, I told them, “516EE75994BA0DC137BE1074E46CB27D069C39A4” and it means the same thing, it has been encrypted. 

The most popular and effective encryption system available to the public is PGP, or “Pretty Good Privacy”, a program developed in the early 1990s by Phil Zimmerman, and that has started an informal open source product line.  The program (as is all modern cryptography) is based on mathematical operations on the text to be encrypted.  Consider that string of numbers and letters in the last sentence in the previous paragraph.  Every two characters can represent a letter in the computer's text.  I don't want to get into a long description here, I want this to be more “how to use it” than what it is, but these systems use two keys: a public key and a private key.  When I send a message to someone I need their public key and my private key.  To decode it, they need my public key and their private key.  With those two numbers, they can get the plain text back. 

PGP is available as a Windows program, a DOS program, MacOS, and others at  http://www.pgpi.org/products/pgp/versions/freeware/   The problem with PGP is that it has become a brand name and in order to maintain their proprietary name, there are problems with the older versions (free versions) reading files encrypted by the newer versions.  My recommendation is to use the open source program, the Gnu Privacy Guard, Gnu-PG or GPG,  which generates encrypted files compatible with PGP.  If you insist on using PGP by name, the MS-DOS version on that PGPI.org web page, version 2.6.3i, seems to be the best version to use.  Even that website is recommending the Gnu-PG program for all other Windows or DOS versions.  If you have problems with that site for any reason, Gnu PG is at http://www.gnupg.org/download/  or http://www.gpg4win.org/

If you are truly, truly paranoid, you will want to get the source code, inspect it yourself – to make sure no one has left a “back door” into the code – and compile it yourself.  If you're less suspicious, or couldn't tell by reading the source code if had been broken, you'll either use code from a trusted friend or other “open” source or buy it from a trusted source.  You see, there are always limits to how secure you can be, and always limits to whom you trust. 

The idea behind the name “Pretty Good Privacy” is that there are many ways to ensure privacy with all sorts of layers of protection.  This is just one.  It has been estimated that if every computer in the world was employed to decrypt a PGP message encrypted with a long key, it would take longer than the age of the universe.  There is talk that the quantum computing just now coming on line will render this obsolete, and quantum encryption will replace it.  We tend to think in terms of how hard it is to break the encryption.  Remember that it's easier to break the person who encrypts it.

From the inimitable XKCD.


So how do you use it?  The details of exactly how you install and run the program will vary with the system you have and the program you choose. 
Quick Start: http://www.cs.rutgers.edu/~watrous/pgp.html
User's Guide: http://www.cs.rutgers.edu/pgp/pgpdoc1/pgpdoc1.html
For Ubuntu Linux users: http://ubuntuforums.org/showthread.php?t=680292

To see what it's like, I downloaded the zipped file from http://www.gnupg.org/download called “GnuPG 1.4.11 compiled for Microsoft Windows” (down the page, under "binaries").  This is a windows installer for program that works from the command line.  If you install this with the defaults, it goes into a location in your main drive’s Program Files folder, generally c:\Program Files\GNU\GNUPG  If the term “command line” is something you’ve never seen, it's  MS-DOS in 2011.  There are Windows-only versions, at GPG4Win.  Which ever way you go, your circle of friends needs to run the same program, but I’ll assume you want to use the free, widely compatible Gnu-PG.  In XP, go to the start menu, choose run, then type in “command.com” (no quotes).  You’ll get a window that opens with a command line prompt, something like C:\DOCUME~1\NAME> where “Name” is your user name on your computer.  From there, you'll navigate to the \GNU\GnuPG directory to run the program. 

An alternative that I haven't tried is the GPG4Win package http://www.gpg4win.org/  that seems to be more Windows-based and a donation-based funding.  As I am running Linux almost exclusively these days, I haven't tried to duplicate my efforts with GPG in Windows.

There are excellent online help sources that realize this is a whole new world to a lot of people.  They explain what you’re doing and why, and then show how to do it.  See http://www.dewinter.com/gnupg_howto/english/GPGMiniHowto.html for a good step by step tutorial for how to actually do the various tasks.  It is a little awkward at first, but not bad once you’re used to it.  Essentially, you will run the program to generate a pair of keys, one that is secret, meant to be on your computer only (with a back up somewhere safe) and one that is shared publicly.  You give your public key to your friends and people you want to communicate with.  If you’d like it to be available to anyone who might want to talk with you, there are open repositories for your public keys, and since they are plain text, your public key can even be provided with the email you’ve encrypted.  To send a message or file to someone, you need each others’ public keys.  It is encrypted with your private key and they decrypt it with your public key. 

The most common use is probably for email.  There are plug-ins for mail programs that automate the task.  Thunderbird, the free email program from Mozilla, the group that gives away Firefox, has a program called EnigMail available for it that will automate the process with simple choices from a pull down menu.  If your mail program doesn’t have a secure plug-in, the most direct way is to write the email in your mail program, then cut and paste it into a text file with Windows notepad or other plain text editor.  Next, encrypt the plain text file, then cut and paste the encrypted text (usually in another file) back into your email program.  When you receive an encrypted email the process is pretty much the same.  Copy the text out of the email into a text file.  Decrypt it, which will write the output to another text file.  Then just read the plain text. 

Here's an example.  I took a paragraph from above and using my (double secret) home email address sent it to the graybeard address on the right sidebar.  The message I sent started out like this:
The idea behind the name "Pretty Good Privacy" is that there are many
ways to ensure privacy with all sorts of layers of protection.  This is
just one.  It has been estimated that if every computer in the world was
put to use to decrypt a PGP message, it would take longer than the age
of the universe.  There is talk that quantum computing, just now coming
on line will render this obsolete, and its encryption will replace it.
After encryption with my home private key and graybeard public key, it looked like characters chosen at random:
-----BEGIN PGP MESSAGE-----
Charset: ISO-8859-1
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla  http://enigmail.mozdev.org/

hQEMAy2GgGPnGxJkAQgAj6Ot4HjETZFTsGtYCzt4RZDeZa31nKkYnG0n1Fuhz7ywJmbB5+YOck+mVBr9Ua25nQIFwu45vHhvi+S3Hv21npNAs6WzCKXXNQ/NGxSQEbwwNfsVk1RQ3DCOjo5DtmrSvxWagV7e+d1fDPkV9u+qq+j1RqYIbwMv0kMn6ZywK2XDzc+P9ri7VWgLI8gVVg7YLxKhSF9JDcoioz80fJrFbUOtVni59JS2YsWnC0APt0WnLclgX+gnAWOfWFL6JcbQWxGpHeAMrD2C2l8gsMZxdFb8dDv0QN6oajCJMeVPWm7ondzFDp7qAVWdJ6T6RqCnwsAs4IjE6/w69DZ7COhYvIUBDAPwYWQt4FFuxgEH/1kFZps+NJmiiMvPW9olaEZEjhR2EKy15gSKH2DO99cOcGueXPQ2B1DLEtzENRjJ2miuu4yKwBjCXrX4+Cnimb+DZVX9poPlh17bL+lSpOpnvpkiKgRnxAClTWRIkSWEH+D4Wty/OpwE2NMN+btqtpUSneFhlGOmy+mJ2alWeW7MO/hAGm7OpRaYSg5fIjymRAuxSSjhi3TvUf3BmcLEY/fqOYwzlGCE7NHGHvdwoRMDozFfPjbIML2mOoG2klWyZ38ztmeH8WOWM4Ty0pvpYfq2DwHZfhyktsWfFx4A7Edh7IOCD8pXzsetFfSwPABuJuj1u2wF0zIWAE0AGm6SMX92w7ig0qx2rOLllDdqdawtWcwD87nyzAVokWAaWNDC/5aAGxqw5ggKVJkPJ3g91WNKEAqzRyy8PfapkRjboUafMkIHcq3lFYQC7Et0icIoY6AfyGSC79rNPsZx5mTDmCLsnbHd/6nK8UTYluyplrurfkh+wMh2JJ0IaOzup12R5F3nYbgeu0oUWpB/zhVEQtH67U+82b/SdPW9b8aQSieattuh/Ndhecu0md8PW1iLGW6h8NTeAs7v8ZzkFXD/o2sWgE5iAccFtclM/by1aTjul16zcVtJcI/CoBWO4OUlkldAT3Ora6Y7UfDM0oxIGncbWPjkPJ3OURim8f2a2dNsALWkH1+j
F7X6wHZ486DD/3wdLWAdEFg=

=fRa
-----END PGP MESSAGE-----
 
When I got the email at gmail, I copied the encrypted text into a plain text file, saved it, then ran GPG from the command line in Linux.  It asked for my passphrase, then the name of a file to send the result to.  The result was the starting text. 

If you are sending messages to friends over a packet radio network, there are file transfer protocols that allow you to send files.  Encrypt the plain ascii text file before you send it.  If you need to get text files to someone by dropping USB sticks somewhere, encrypt them.  Anytime you would want to put something in an envelope is the time to encrypt. 

This is, and can only be, an introduction.  Don't be intimidated about starting down this road, it's harder to explain than to do.  In my mind, it's easier to do this than many tactical tasks.  In the end, you'll have a secure means of communicating that is more secure than the https secure protocols used for banking on the web, and something to fall back on if the main methods of communication go down. 

Tuesday, March 26, 2013

Contemplating Privacy and Radio Communications I

As a ham radio operator, I'm required to comply with FCC Rules, Part 97 of the Commission's Rules whenever I use the amateur bands.  One of the rules is that we must identify our transmissions at the start and end of a contact with our federally issued callsign.  Hams have a tradition going back as far as the hobby exists of swapping little post cards, called QSL cards, commemorating the contact.  (The name is one of many "Q signals" that hams using Morse code developed to shorten the text they needed to send.)  In the days before the Interwebz, you bought a phone book sized directory called a Callbook, which was a listing of every ham in the US by callsign.  You looked them up in the book, and mailed the card.  Today, hams go to a number of online sources like QRZ to look up anyone by callsign. As with all information in today's society, it's easier to trace a ham by callsign than ever before. 

Because this information was always available to anyone who cared to look, hams were always a rather open group.  Many guys just identify themselves online by their calls, including the rather famous ones (and there have always been famous ones).  If you go to hamfests, it's so unusual to see someone without a callsign badge or monogrammed shirt or hat that you just assume they're not a ham.  Many hams have carried this into the rest of their online lives.  I can't tell you how many identifiers I've come across on forums that either are the callsign by itself or a name and callsign made into one identifier. 

Most of the folks that visit here are preppers, as I am, and preppers have a completely different mindset about privacy than the typical hams do.  We're of a mindset that many in the country would describe as at least mildly paranoid.  We're certainly not the mainstream in the country, partly because we choose to think about things that most people refuse to look at.  Someone I recently heard being interviewed said he couldn't even talk with his wife about a storm pantry, just a few days worth of preps, because she "just refuses to think about it".  As a counter example, in the mid '80s, I recall deciding I would never say things like "I'm going out of town this weekend" on the VHF (2 meter) radios because I considered it a home security risk.  It's not as easy as the kids today telling everyone on Face Book or Twitter that they're far from home, but someone who had a scanner and a callbook could hear me, look me up, and visit the house while no one was here.

The concept here is "reasonable expectation of privacy".  If you're on an amateur frequency you don't haz one.   But let's say you wanted or really needed privacy.  What then? 

The military was among the first organization to have this problem and address it.  They typically describe systems as LPI/LPE: low probability of interception / low probability of exploitation.  You'll also see LPD, where D is detection.  It's handy to think of it that way because it can help you channel your thoughts on how to solve the problems.

The easiest one to accomplish is actually the last: low probability of exploitation - using your transmission against you.  I've written before on the topic of encryption or encoding which is the answer here.  It's important to note that encryption is not allowed in the amateur radio service.  There's an important distinction between encrypting something and encoding it.  As I said in the linked piece:
When you encode things, you simply change their language; when you encrypt something, you attempt to hide its meaning.  For example, any language is a coding of symbols, and in typing this, I'm encoding my thoughts into a computer code (ASCII) that can be read on your terminal.  The difference is subtle, but it matters - especially in legal context.  Some systems prohibit encryption, or “non-standard” codes.  I could transmit the phrase, “the wheat is ready for harvest” in plain English to someone who knows that I mean, “I've planted the evidence” and it is encoded, not encrypted.  If, instead, I told them, “516EE75994BA0DC137BE1074E46CB27D069C39A4” and it means the same thing, it has been encrypted. 
Either way, encoded or encrypted, I've prevented a casual listener or even a determined adversary from knowing what I told the person on the other end.  If they've broken the code somehow, they know what I meant and can exploit that information.  There are many ways of breaking codes - from getting the information from someone who knows the code to analysis of the words and frequency of usage and many other tactics.  People have been studying this around as long as there have been people.  And, of course, I can't talk about encryption without lifting this XKCD cartoon yet again.

One of the standard ways of maintaining secrecy in codes is by changing them all the time.  But what about reducing the chance of an adversary ever detecting or even knowing you're transmitting?   This is the realm of a lot of technology.  While we're not allowed to encrypt transmissions, experimentation with interesting technology is one of the stated purposes of ham radio.  The rules actually encourage many of the things we can do.   

Stay tuned...



Saturday, January 29, 2011

The Government Has Shut Down the Internet – Part Two

Yesterday's piece mentioned ham radio, and this will go into more depth on options. Let's start with the most common radios for the most common need. In this scenario, I'm thinking not of a TEOTWAKI or really wide scale, awful event; I'm specifically thinking about communications among protesters in an Egypt-like scenario (from what I can tell of what's going on there). Perhaps there are food riots, perhaps you need to talk to others to plan where you're going to meet, any scenario that you might use instant messaging, email or other Internet communications for.

First: the first law of security. You must assume any transmissions you make are monitored. Years ago, when cellphones were plain FM, anybody with a scanner or other radio that tuned to the cellular band - even some UHF TVs - could eavesdrop on cellular phone calls. The industry, instead of installing a dollar or two of encryption hardware in the phones, argued (and won) that the government should make it illegal for you to listen to these calls. The best analogy I can think of is two people come into your house (the radio signals certainly do) and instead of whispering or speaking in code words, get you arrested for listening to them. Don't count on anyone not listening to you because it's not polite or legal.

Practically, that means to keep your communications as brief as possible; it means lower powers are better than higher powers; and it means encryption, which will be the next topic.

Radios
For local use, the VHF or UHF (or both) HT is everywhere. I guess that more hams own small HTs than any other style of radio. There are many manufacturers, and as I noted yesterday, a decent rig will cost from the price of a few hundred rounds of FMJ 9mm up. This chart is one dealer's handy way to shop for an HT

You will note a basic single band HT can be had for $89 (about 400 rounds of 9mm FMJ today) and the top end for multi-band is around $500. Note these are new radios, not used gear. Those might start at $25. I have no connection with Gigaparts, other than having bought things from them several times.

What do I own? Currently, Mrs. Graybeard and I each carry a Yaesu VX-6R (our other everyday carry). The combination of features vs. price hits a sweet spot for me, but it may not be right for you. This radio receives everything from the AM Broadcast Band (500 kHz) up to 1 GHz, with the exception of the (hardly used) old US AMPS cellular band at around 925 MHz (the result of that law I mentioned above). This allows the same handheld to be used for shortwave or AM listening, FM broadcast, aviation (should you need that) and two way communications on 144-148 MHz (2 meters), 222-225 MHz (US version) and 420-450 MHz (70 cm) bands. It also allows use of that front LED as a nifty emergency flashlight, too!

The price for this flexibility in so small a package is a complicated user interface with multiple keystrokes to get to some functions. You will need to spend some time with it to learn how to use it proficiently in a crisis.

While radio propagation is a fascinating field and subject to all sorts of variations, VHF/UHF radios are considered “line of sight” and have limited range, typically a mile or two on level ground without obstructions. These radios are usually less than 5 watts output, a concession to running on a small internal battery, and power brings range. In general, to double the range, you need four times the power (an inverse square decrease). That means if I can communicate two miles between 5W HTs, to communicate four miles, I need 20W. If you have a better power source, like a car, or to use at home, don't restrict yourself to an HT. Instead, there are mobile and base station radios that include the features of these HTs and allow higher powers, often 40 or 50W, sometimes more. (For comparison, aircraft comm radios, which are AM mode just below the 2 meter band, typically have an output power of 20 W and are considered to have a range of 100 miles – but there are no obstacles to the signal). A comparable selection chart to the previous is here.

Finally, there are radios that cover HF, VHF and UHF, all bands, all modes. These tend to be the most expensive, and draw the most power, but can be the centerpiece of a communications center. They are on that chart, too. You might come across a used radio called an IC-706MKIIG, now discontinued, as an example of this sort of radio. This has been said to be the most popular ham radio ever produced, with sales in the tens of thousands. I have used friends' radios and they are excellent value. Today's versions might include the IC-7000, FT-897, and FT-857.

Antennas.
While any old piece of wire tends to work for receivers, transmitters face harder requirements that tend to make antennas a more complex subject. To be effective, transmit antennas need to be greater than 1/8 wave long, and a wavelength varies from quite long at the low end of the HF spectrum (1.80 MHz, 160 meters: over 480 feet) getting shorter as the frequency goes up. This is one reason why hams tend to refer to frequency band by wavelength, like saying “2 meter HT” rather than “146 MHz HT”; it gives a clue to antenna size. The antennas that come on HTs tend to be multi-band compromise antennas because the radios are designed for convenience, not the ultimate performance. The standard antenna used in many industries is the 1/4 wavelength monopole. If you wanted to make one, you'd cut a wire to 234/f feet long (f is frequency in MHz), or 19.2” long for 146 MHz. You can see that running around town with a foot and half antenna on your hip could cause some problems and that's why the HT antennas tend to be shorter, less effective antennas. This affects how well you can communicate; your range.

If you thought gravity was a tough taskmaster, electromagnetics doesn't give up a thing. Maxwell is just as unforgiving as Newton.

What this means is that you'll have to accept poorer performance from the HT than is theoretically possible, but you might be able to make that up if you're communicating with a Comm Center that can put up bigger, better antennas. This is why amateurs have spent millions of man hours and millions of dollars out of their own pockets to put up an infrastructure of repeaters that (as the name suggests) receive your HT on one frequency and re-transmit it on another. Having a repeater can make your HT go from having a couple of miles of range to having perhaps a 20 or 30 mile radius. On the other hand, repeaters, like any centralized infrastructure, can be taken down by an aggressive government, or enemy force.

It also means that if you're trying to be sure you can communicate with your spouse across town, you should try to put up an outside antenna, as high as you can, and test it out before the SHTF. 

Training scenarios:
Alright, let's start putting some ideas together. Say you're in a Cairo situation, and there is rioting going on. The streets are blocked. You want to contact your friends to either join in or get out of town. The first step is you must be tuned to the same frequency. That means you have agreed meeting frequencies. If the frequency is in use, you must have agreed plans. Something like, “if TSHTF, and the repeater is down, I will meet you at the 5 minute marks on 146.540MHz. If it's in use, I'll switch to 446.540 MHz. If that fails, I'll try again on the 7 minute mark.  I will call you first.”. Keep your transmissions short. If you are simply meeting your spouse or friends to exchange plans, “I'll meet you at the kids' school”, or “I'll meet you at liberty square”. Once you've made initial contact, you can go to other frequencies, programmed in advance in your radios. Keeping your transmissions short reduces the ability to get a DF fix on you. Keeping your transmissions too short might not be good either. Something like, “initiate plan A” doesn't sound very good to monitors. You have to remember in a Without Rule of Law situation, soldiers listening in might think, “Initiate plan A” means, “Get the bombs” and not “Go pick up the kids, let the dog out, and meet me at Mom's”, so be careful about being on the air.

Other situations
Let's assume it's not rioting, there's no clear SHTF, but the situation from last night's post has happened. The Internet is down to prevent “vitriolic rhetoric” or “hate speech”. We need a way to communicate. 

Of course, amateurs sitting around in on-air round table discussions are as old as radio itself, but if there is concern about monitored, an alternative might be better. Before the days of the Internet being everywhere, hams put up packet radio BBSes, a radio version of the computer bulletin boards that were popular. The most common place to find packet stations was 145.100 MHz, using low speed (1200/2400 bit per second!) Terminal Node Controllers.  A good introduction to packet radio systems is this summary from one of the groups that started it.  This network is still in place. Hams also built a transcontinental, HF packet system, this time at the lowly 300 bps, but being an autonomous store and forward system, messages could be gotten around the country in a straightforward way. You simply sent the message to your local packet station and it was handled autonomously by the packet system. 1200 BPS is not going to get you a web page like this, with high resolution graphics built in, but it can get you mailing lists, and any sort of text communications you'd like. 

Today, hams have increased the packet speed to 9600 bps, but this requires a radio designed to be compatible with the higher audio bandwidth 9600 uses. There has also been some experimentation with higher speeds (56k), but that requires dedicated UHF radios. The most popular modes remain those that can be added to a radio that the ham already owns, usually by plugging into the headset and microphone jacks of that radio.

Now we run back into the security issue. With a voice radio, once you're done saying what you're saying, it's gone. It's possible the monitors never heard you at all.  With a packet system, it's in a computer somewhere, which means it can be read by someone else some other time. Here we need to crack the problem of protecting privacy.

And that, as they say, is the topic for tomorrow.

Sunday, September 8, 2013

About That Secure "https"? Yeah... Not So Much

The story broke this weekend that the NSA forced providers to allow backdoor entry into the web based encryption that most online banking and shopping uses, allowing essentially total surveillance of the web.  In case you doubted, they can monitor every bank transaction, every purchase you make, if at any time the transaction goes over the internet.  Apparently, if you walked up to the counter in a store and bought on a credit card, they got the transaction. (I've always assumed this to be the case)  H/T to Denninger, among many, who also has some good comments.  Microsoft, it seems, allowed access to anything it encrypts back to Windoze 95 (I wonder if the monopoly charges and pressure on MS in that time period had anything to do with this?):

How did they get caught?  Someone built one of the service packs without stripping the symbols from the code, and right there where everyone could see it was "_NSAKEY."

Now Microsoft denied that this was in fact what the key was, but what they didn't do was release the source code in question to prove it.  No, they simply "asserted" that one should trust them because, well, they're Microsoft.
Wirecutter follows up with a link to techdirt saying the NSA and GCHQ Admit The Public is the Enemy.  Internal documents, referenced by the Guardian (UK) show the NSA refers to the public as "adversaries". 
Among other things, the program is designed to "insert vulnerabilities into commercial encryption systems". These would be known to the NSA, but to no one else, including ordinary customers, who are tellingly referred to in the document as "adversaries".
That's your government referring to you. Apparently not without some sense of humor, among the code names the NSA used internally for these programs were Manassas and Bull Run, a major battle in the (first?) civil war.  The UK GCHQ used the name Edgehill, the first major engagement of the English civil war, more than 200 years earlier. 
Now you can sweet talk and substitute words like some mealy-mouthed lawyer or government spokesman as long as you'd like.  You can say, as one commenter did, that it's simply NSA-speak that any code they attempt to break is from an adversary, and they don't mean you and I specifically.  This is in the tradition of "it wasn't rape rape": they don't mean adversary adversary.  Except that they do.  The whole program is based on violation of the 4th amendment, monitoring everyone as if they were a suspect in a terrorism case.  

It seems there's only one answer, tear down the agency.  I'm partial to the argument that we need an agency that performs the NSA's original mission - to monitor and, yes, spy beyond the water's edge.  Foreign only.  So we need a massive cancer-like surgery to remove the domestic side of the house while leaving the international side there.  Ain't gonna happen without serious disruption, if ever. 


Tuesday, January 5, 2016

In Honor of Bozo's "Reasonable Gun Laws"

A repost of my version of reasonable gun laws.  I've written on this topic before and part of this will come from two posts: here and here, along with some new thoughts.

Let's start here: any adult with normal rights can walk into a sporting goods store in most places and walk out with a shotgun or a rifle with no waiting period.  But if they wanted to buy an AR-15 or a Mossberg 500 from the factory or from a store in another city, why does it have to go through a local FFL's hands? Why can't anyone order a rifle or shotgun from an online gun store, their favorite Big Outdoor Store, or even an Amazon.com kind of "online superstore", and have the gun shipped to their house?  It was sold by an FFL that did the NICS check, so why does another one have to get involved?  It used to be that way, until the GCA of '68.  What advantage is there to society from shipping it to an FFL?  It's not like the second FFL prevents someone from stealing it in transit - that's on the shipping company.  It does nothing but give money to local FFL holders. All they can do is look at the buyer's ID - which can be done digitally with encryption when the purchase is made. 

We all know there's no such thing as a "gun show" loophole, and that you can't just order something online from a gun store. I say, "why the hell not?"  It's freaking 2016, for God's sake.  We have the technology.

This is the opposite of the current drive to make every sale of every used firearm go through an FFL, like Obama is pushing for in today's EOs.  I think the whole FFL system is obsolete, a remnant of the way things worked in the 1930s, and does nothing that couldn't be achieved in other ways.  All it does is keep FFLs and Fed.gov worker drones employed - which seems to be the point.  I want our side to push back on the whole system.  If FFLs and these gun laws mattered, they'd prosecute people for violating them! 

We should push for, at the Federal level, complete concealed carry reciprocity across the country.  Those places that still deny the human right to self defense need to be dragged, kicking and screaming into the modern age. I'd prefer reciprocity for both open and concealed carry, although you know that would be a hard sell to every Evil Party senator and representative.  Heck, we have a hard enough time getting it passed in Florida with the treacherous Stupid party politicos, who are nominally on our side. 

There's also a silly hodgepodge of waiting periods for a handgun.  In some places it's 3 days, in others, 5 days.  Here in Florida it's state law to eliminate the wait if you hold a concealed carry permit.  If there's a waiting period, why can't you order a pistol from Bud's (for example) and wait 3 or 4 days for UPS to deliver it? Again, you'd fill out the background check with the FFL who's shipping it, why does it need to go to another FFL?  With today's computer security, you could verify age, do a NICS check - anything the local shop can do - online. The whole idea of a wait was a "cooling off" period, so that a hothead doesn't go buy a gun in a moment of anger and then go kill someone, but I personally have a hard time believing there were large numbers of that sort of crime anyway.  It's an extension of the ban on Saturday Night Specials, which (as far as I can tell) only had the effect of removing cheap, reasonably functional guns from people who couldn't afford better ones, and caused some smaller arms companies to either fold or change their product line.  Another government penalty on the poor.  But, fine, we'll play your infantile waiting game -- now how does waiting 3 days to pick up a gun in your city differ from waiting 3 days to get it delivered by UPS or FedEx?

Why are silencers - glorified mufflers - regulated as if they were machine guns?  Why are we required to have a muffler on a car, motorcycle or lawn mower, but we're required to not have one on a gun?  This was originally to keep people from shooting the King's deer (poaching game), but I think the problem today is Hollywood.  They created this illusion that a silencer reduces the 155 to 160 dB of a gun shot down to a barely audible, and it just isn't so.  Silencers should be completely deregulated - not even the $5 "any other weapon" class - just over the counter at your local store.  Did you know that there's nothing like an 80% lower in the construction of a silencer; no stage that's legal?  If I have a lathe (like I do) and they find pieces that someone thinks could someday become a silencer, I've broken the law.  The ban is total. 

This one actually is for the children.  And for anyone who moves next door to gun ranges or clubs and gets disturbed by the sounds. 

We should eliminate postal restrictions against mailing of firearms. We can ship them via UPS, or FedEx, why not USPS?  Don't they need every penny of revenue they can get?

Get rid of the stupid “sporting purpose” tests for firearms. The Heller decision makes it very clear that the Second Amendment isn’t about duck hunting. This particularly affects imports.  No restrictions.  

Get rid of the stupid laws on short barreled rifles and shotguns.  The idea that a shotgun barrel 18.05" long is fine, but one that's 17.95" is some sort of killer monster weapon is just silly.  It's there simply to create law violators.  It's also one of their most enforced laws - probably because it's really easy to measure barrel length.

The last time I did some looking at John Lott's data, his studies had been peer reviewed 30 times and never refuted.  There was one author who said Lott couldn't prove "More Guns Equals Less Crime"; but neither could he (the reviewer) disprove it.  Lump this one under the rule for reading medical studies: correlation does not equal causation.  However, and this is important, there can't be causation without correlation.  When you look at global rates of gun ownership vs homicides, there's almost a perfect inverse relationship between the number of guns in private hands and murder rate, across the globe. 
While cross-cultural studies have their troubles, and some countries are only classed as countries in the loosest sense of the word, in most cases the countries with the most gun ownership had the least homicide. 


Tuesday, February 10, 2015

Techy Tuesday - When Your TV Watches You

For some reason, I haven't been able to shake an image of Yakov Smirnoff saying, "In Soviet Russia, TV watches you!" since I first saw the stories about the Samsung Smart TV.   In case you missed it, buried deep in the disclaimers that virtually nobody reads anyway is this rather alarming little statement.
Please be aware that if your spoken words include personal or other sensitive information, that information will be among the data captured and transmitted to a third party through your use of Voice Recognition.
Whut?  I need to watch what I say in my own house?  I can't talk about "personal or other sensitive" things in my own living room?  And how many people have a TV in their bedroom? Does it have cameras to watch me - so it will recognize faces and which programs they like?

I'm going to go out on a limb here and assume most people know Apple's Siri "digital assistant".  To invoke Siri, you need to take a positive action.  The default is to press a large button and hold it until you get a tone that acknowledges the app is now running.  Now Siri doesn't live entirely on the iPhone.  Once you've engaged the app and asked a question, Siri can connect with servers online to help interpret your speech.  Still, if you don't press the button, Siri never turns on and never listens. 

Samsung's TV is the opposite of that.  Their usage model centers on you speaking commands to the TV.  If you're just going to command it, speaking in your best Jean Luc Picard voice, "TV, change to channel 1035", it has to be listening all the time.  It has to actually be continuously parsing what everyone it can hear is saying and deciding if it's a command or not.  If you yell "turn off that noise" to your kids in the other room, it has to decide what that means, and whether or not it needs to respond.  Samsung says that the microphone in the TV only responds to simple commands and does not pipe the speech out over the Internet.  

The use of the "third party" to process speech only happens when you press a button on the remote, perhaps asking the TV to recommend a movie (I don't know about you, but I always think about asking my TV what it thinks).  Since you're pressing a button, it is similar to how Siri and Google Now work on smartphones.  No button press; no threat of eavesdropping.  Says Samsung.  Users will see a microphone icon on the screen when it is on.  Samsung says it's easy to cope with this if you don't want a voice activated TV (then why did you buy one?) by going into the Settings and disabling it.  Then they say,
"While Samsung will not collect your spoken word, Samsung may still collect associated texts and other usage data so that we can evaluate the performance of the feature and improve it,"
And, of course, if you turn off the voice activation features, those features you paid for aren't going to be working.  I suppose collecting usage data isn't that bad, especially if anonymized.  It's probably data that doesn't cross over into the extremely personal category.

The problem is Samsung really stepped in it.  They put in a bunch of features they thought people will want in a TV and then weren't really up front about sending much of what the TV hears to a remote processor.  When people were upset about it, it was as much how they found out as it was the actual discovery.  Samsung could only say they use "industry-standard security safeguards and practices, including data encryption, to secure consumers’ personal information and prevent unauthorized collection or use", but now it's a question of whether or not you truly believe them. 

Besides, didn't Anthem and Sony and all the other cyber attack victims use "industry-standard security safeguards and practices"?


Friday, January 28, 2011

The Government Has Shut Down the Internet - Part One

Egypt appears to be in the grip of a genuine open-source revolution, and the government has responded (as, I'm sure, almost all governments would) by shutting down the Internet, cell phones, and all modern communications.  The mobs were coordinating via social networking software, so it's not an unreasonable thing for them to do in self-preservation.  Shutting down communications beats shooting kids, like the Iranians did, right? 

If you're new around here, you won't know that I wrote about this last summer.  It's a "beginner-level" piece, and not written from the standpoint of an open-source revolt, but from the standpoint of government shut down of "vitriolic rhetoric".  I think it's a good starting point.  I'm going to do something I don't think I've ever done, and re-post an old post in it's entirety:


The Gov Has Shut Down the Internet. Now What? 

Tomorrow or next week or in a few months we wake up and it has happened.  In a move that was widely expected, the FCC has regulated the Internet and established a penalty on media that is not part of the state run complex.  In essence, the US government has seized the Internet.  We have A/N/BC/C/P/BS and with a stroke to their Internet lackeys at Google, Blogspot is shut down taking this blog and thousands like it down.  A justice department visit to Wordpress and the few others, and all independent opinion is gone. 

Google actually thought they were playing the administration so that "net neutrality" would get them on top of the burgeoning online video market; instead, it got the jackboot of the Fed.gov on their neck, and a threat to take them apart if they get out of line.  Sorry about loosing your billions, Larry, and Sergey.  But it's for the common good, you know?   Didn't Mark Lloyd say, "We're in a position where you have to say who is going to step down so someone else can have power."  What?  You didn't think you had power at Google?
  
So the web as we know it is gone.  What do we do?  There are several options.  First, I assume the Internet infrastructure will almost certainly be left intact and email will be running.  I think even mild-mannered soccer moms would take up arms if they couldn't keep in contact by email. 

Get anonymous.  This blog account and email address belong to someone who has been online for 20 years.  My name will show up in many Google searches.  I choose to remain anonymous here so that I can say things like this.  I imagine the Fed.Gov can track me down - and might.  But probably nobody except them. 

There are other ways, too.  Search "anonymous email" and you'll find a host of companies that will provide that service of making you untraceable.  I would prefer one offshore the US, because they are least likely to respond to threats from the US government. 

Mailing lists can keep us in touch.  We establish majordomo servers, preferably on many sites, with lists of liberty-oriented people to keep contact with.  Leave 3x5 cards on public bulletin boards  with messages like "Sons of Liberty, send email to majordomo@something.or.other".  These need to be handled carefully!  If the .gov starts feeling threatened, they will use their awesome powers of surveillance to capture those who put up cards like that.  Mailing lists were the predecessors of the WWW, and can be useful again. 

Use encryption.  In the early days of the net, the program PGP (Pretty Good Privacy) was widely used.  Without getting into too much information, PGP is a dual key system where you create a public key which can be put onto a public server, and a private key that stays with you.  The math allows you to exchange public keys with someone else and be sure no one else can read encrypted emails.  PGP is now owned by Symantec, but there is an open source version, GnuPG (the Gnu Privacy Guard) that is said to be secure, too.  The older DOS and Windows 3.x versions of PGP are still around, too.  Use a long key, the longer the better and there's no reason not to use one as long as the program supports.  In 1997, the deputy director of the NSA said, "If all the personal computers in the world - 260 million - were put to work on a single PGP-encrypted message, it would still take an estimated 12 million times the age of the universe, on average, to break a single message".  The numbers are little dated, but it is secure, and the NSA does not have a back door into it. 

Ham radio.  Do you have a license?  It's cheap, not technically hard, and no morse code test anymore.  If we're not living in a post-apocalyptic world like that depicted in "Patriots" the risk of using radio is small, especially if transmissions are brief.  It can be ideal for coordinating local groups.  If the transmissions are noise-like (spread spectrum), they are even more secure.  I hope to have more to say about this in the near future.  The basic problem is that it's relatively easy to make a system secure between two or a few people, but harder to make secure for a group to share, especially for a group that is ever expanding.  You can communicate with neighbors, across town, or across the US with stations that are almost invisible to prying eyes.  Depending on what you want, getting started could cost anywhere from the price of a few hundred rounds of  FMJ 9mm to the price of a pretty decent handgun: $125 to $800. 

Shortwave.  Shortwave broadcasting is still going strong every day, even in this age of satellite communications and the internet.  The programming is usually scheduled to be in your area in the evening, local time, but can often be heard when intended for other areas.  No, I can't promise Rush, Beck or any program you want will be picked up by and available by SW, but you will be able to access news, weather and other services that may be shut down by the authorities. We can broadcast, too. 

Shortwave is broadcasting, and therefore also regulated by the FCC.  It's not legal for US stations to broadcast to the US, but that is currently addressed by putting transmitters in corners of the country to aim their broadcasts across it.  For example, a station in Maine might transmit to the Caribbean and South America, making it audible across the southern tier of states, if not more.  From outside the US, beaming the US is completely legal, and that means it's legal to use a transmitter from a boat offshore the US.  By UN Convention, 12 miles marks the US territorial waters; arguably, a small boat that can go that far offshore would be able to broadcast to the US, much like the pirate radio stations that have sprung up from time to time.  A shortwave transmitter is another name for a ham radio transmitter.  There are open source modifications for just about every commercially made radio that would allow it to transmit outside the ham bands.  Because a 100 W station can easily fit in backpack, they are easy to set up for one time operation. 

There are already pirate stations on the air, usually found just below 7.00 MHz.  The most common frequency is 6.995 MHz, usually upper side band.  I strongly suspect more stations will follow. 

A bare bones shirtpocket shortwave broadcast receiver won't cost you more than $100, often less than $50 depending on features, and will allow you to get news from around the world.  Virtually all of the portables run on batteries that will discharge.  A new trend is for radios that you power by cranking a generator to charge an internal battery, or with a solar cell to charge the batteries.  If you have a set of rechargeable batteries, you can always charge them from your car (assuming you have fuel for your car).  I personally prefer analog radios instead of digital as they tend to have better battery life.  An example of a simple radio for SWBC is here:   I have no connection with Amazon or the manufacturer, but I have one of these and I'm happy with it.  The disadvantage of these really cheap portables is that they won't receive SSB, which the current crop of pirates use.  At this time, it's hard to know if that will be necessary.

This is and can only be a start.  We have a lot of options, down to the old practice of nailing leaflets to trees like the founders did.  The loss of the web and blogs would hurt, but it doesn't need to shut off communications. 

*     *     *     *     *     *     *     *     *     *     *     *

I want to do more on this topic tomorrow, but for now, it's a pretty good start.  

Edit 20:05: text formatting issues that looked fine on my machine, but not on Mrs. Graybeard's computer.

Sunday, June 20, 2010

The Gov Has Shut Down the Internet. Now What?

Tomorrow or next week or in a few months we wake up and it has happened.  In a move that was widely expected, the FCC has regulated the internet and established a penalty on media that is not part of the state run complex.  In essence, the US government has seized the internet.  We have A/N/BC/C/P/BS and with a stroke to their internet lackeys at Google, Blogspot is shut down taking this blog and thousands like it down.  A justice department visit to Wordpress and the few others, and all independent opinion is gone. 

Google actually thought they were playing the administration so that "net neutrality" would get them on top of the burgeoning online video market; instead, it got the jackboot of the Fed.gov on their neck, and a threat to take them apart if they get out of line.  Sorry about loosing your billions, Larry, and Sergey.  But it's for the common good, you know?   Didn't Mark Lloyd say, "We're in a position where you have to say who is going to step down so someone else can have power."  What?  You didn't think you had power at Google?
  
So the web as we know it is gone.  What do we do?  There are several options.  First, I assume the internet infrastructure will almost certainly be left intact and email will be running.  I think even mild-mannered soccer moms would take up arms if they couldn't keep in contact by email. 

Get anonymous.  This blog account and email address belong to someone who has been online for 20 years.  My name will show up in many Google searches.  I choose to remain anonymous here so that I can say things like this.  I imagine the Fed.Gov can track me down - and might.  But probably nobody except them. 

There are other ways, too.  Search "anonymous email" and you'll find a host of companies that will provide that service of making you untraceable.  I would prefer one offshore the US, because they are least likely to respond to threats from the US government. 

Mailing lists can keep us in touch.  We establish majordomo servers, preferably on many sites, with lists of liberty-oriented people to keep contact with.  Leave 3x5 cards on public bulletin boards  with messages like "Sons of Liberty, send email to majordomo@something.or.other".  These need to be handled carefully!  If the .gov starts feeling threatened, they will use their awesome powers of surveillance to capture those who put up cards like that.  Mailing lists were the predecessors of the WWW, and can be useful again. 

Use encryption.  In the early days of the net, the program PGP (Pretty Good Privacy) was widely used.  Without getting into too much information, PGP is a dual key system where you create a public key which can be put onto a public server, and a private key that stays with you.  The math allows you to exchange public keys with someone else and be sure no one else can read encrypted emails.  PGP is now owned by Symantec, but there is an open source version, GnuPG (the Gnu Privacy Guard) that is said to be secure, too.  The older DOS and Windows 3.x versions of PGP are still around, too.  Use a long key, the longer the better and there's no reason not to use one as long as the program supports.  In 1997, the deputy director of the NSA said, "If all the personal computers in the world - 260 million - were put to work on a single PGP-encrypted message, it would still take an estimated 12 million times the age of the universe, on average, to break a single message".  The numbers are little dated, but it is secure, and the NSA does not have a back door into it. 

Ham radio.  Do you have a license?  It's cheap, not technically hard, and no morse code test anymore.  If we're not living in a post-apocalyptic world like that depicted in "Patriots" the risk of using radio is small, especially if transmissions are brief.  It can be ideal for coordinating local groups.  If the transmissions are noise-like (spread spectrum), they are even more secure.  I hope to have more to say about this in the near future.  The basic problem is that it's relatively easy to make a system secure between two or a few people, but harder to make secure for a group to share, especially for a group that is ever expanding.  You can communicate with neighbors, across town, or across the US with stations that are almost invisible to prying eyes.  Depending on what you want, getting started could cost anywhere from the price of a few hundred rounds of  FMJ 9mm to the price of a pretty decent handgun: $125 to $800. 

Shortwave.
  Shortwave broadcasting is still going strong every day, even in this age of satellite communications and the internet.  The programming is usually scheduled to be in your area in the evening, local time, but can often be heard when intended for other areas.  No, I can't promise Rush, Beck or any program you want will be picked up by and available by SW, but you will be able to access news, weather and other services that may be shut down by the authorities. We can broadcast, too. 

Shortwave is broadcasting, and therefore also regulated by the FCC.  It's not legal for US stations to broadcast to the US, but that is currently addressed by putting transmitters in corners of the country to aim their broadcasts across it.  For example, a station in Maine might transmit to the Caribbean and South America, making it audible across the southern tier of states, if not more.  From outside the US, beaming the US is completely legal, and that means it's legal to use a transmitter from a boat offshore the US.  By UN Convention, 12 miles marks the US territorial waters; arguably, a small boat that can go that far offshore would be able to broadcast to the US, much like the pirate radio stations that have sprung up from time to time.  A shortwave transmitter is another name for a ham radio transmitter.  There are open source modifications for just about every commercially made radio that would allow it to transmit outside the ham bands.  Because a 100 W station can easily fit in backpack, they are easy to set up for one time operation. 

There are already pirate stations on the air, usually found just below 7.00 MHz.  The most common frequency is 6.995 MHz, usually upper side band.  I strongly suspect more stations will follow. 

A bare bones shirtpocket shortwave broadcast receiver won't cost you more than $100, often less than $50 depending on features, and will allow you to get news from around the world.  Virtually all of the portables run on batteries that will discharge.  A new trend is for radios that you power by cranking a generator to charge an internal battery, or with a solar cell to charge the batteries.  If you have a set of rechargeable batteries, you can always charge them from your car (assuming you have fuel for your car).  I personally prefer analog radios instead of digital as they tend to have better battery life.  An example of a simple radio for SWBC is here:   I have no connection with Amazon or the manufacturer, but I have one of these and I'm happy with it.  The disadvantage of these really cheap portables is that they won't receive SSB, which the current crop of pirates use.  At this time, it's hard to know if that will be necessary.

This is and can only be a start.  We have a lot of options, down to the old practice of nailing leaflets to trees like the founders did.  The loss of the web and blogs would hurt, but it doesn't need to shut off communications.

Monday, November 26, 2012

When You Need an Envelope

A friend introduced me to the world of the TAILS distribution of Linux and secure, anonymous internet usage under the TOR Project.  I took a vacation day today (if one short week is good, two short weeks are better!) and played around with for a few hours.  You could spend a lot of time at the TOR project, and all of it would be well spent.

Here's the deal.  That TAILS link (The Amnesic Incognito Live System) leads you to a distribution of TAILS, currently, 0.14.  That page is complete information for getting started, and the download itself is an .iso file, the kind used for either creation of a CD or DVD (from Windoze, as most are, use something like ImgBrn to burn the image) or to write to a USB drive that's at least 2 GB.  The TAILS link has instructions and link to a method of transferring the .iso file to a USB memory stick.  My Staples had these 4 gig sticks for $4 in bucket by the door a couple of months ago.  I can literally lose these in a shirt pocket.
Why you want a memory stick, especially today's tiny ones like this, is that you can stick it in your pocket and always have a secure computer to work from, if you can reboot.  The computer, of course, has to be where you have to access to reboot it and force it into setup or show other Boot Options.  On your PC, probably where you'll use this the most for now, you'll want to ensure you can boot from a USB drive - on a Dell, usually pressing F12 or F2 when prompted will allow you to choose your boot device.  This table can help you find what you need to press for your PC, if you've forgotten.  If you can't boot from a USB stick, but can boot from a DVD, there's nothing wrong with booting from that.  I recommend the USB stick, though, because everything you are running starts on that device, and the USB stick is simply much, much faster than a DVD, and a DVD won't fit in your pocket! 

So what do you get?  TAILS boots into a Debian based Linux that looks remarkably like Windows - it's the Gnome interface to Linux that Ubuntu used to use a few years ago.  There's even a "look like XP camouflage" option for internet cafes and places where you want to blend in like everyone else.  You don't have to choose a password while booting but I recommend you do - you're assigning yourself as Super User or Administrator in Windows-speak and giving yourself permission to access your full Windows hard drive and any other file shares under Windows (I haven't tried to connect to my network with it).  When you're booting into TAILS, it asks you if you want further options; Yes prompts you for a password.  It doesn't have to be any password you use anywhere else on the PC - it's for the OS only.  You'll have a browser (Ice Weasel = Fire Fox clone), an email client (CLAWS = Thunderbird), a communicator (Pidgin), and you'll have several "Best of Linux" programs installed - GIMP, Open Office, and a fully functioning system.

All of your actions - web use, emails, anything, is run through anonymizers.  Web searches go through Startpage.  Your address is blocked.  Security is built in from the ground up.  All to keep you anonymous. The "Amnesic" part in TAILS is because the system forgets everything you've done when you shut it down.  Pull that USB drive and it's deaf, dumb and blind.  What you sacrifice for this security is speed - TOR works by bouncing your packets around between different relays, and this slows things.  Without running speed test web sites, I'd estimate that loading this blog took about 10x longer than when I'm using Windows - or my FireHD from across the house.  Of course, let's never forget that it's easier to crack the user than crack the encryption, as XKCD so brilliantly put it:

It might be worth your time to read, or re-read, this.  Should you find yourself in some sort of dystopian banana republic and need to get anonymous messages to friends and co-workers, this could well be your ticket. 


Tuesday, September 28, 2010

Mmmm....Irresistible Meme - With Floor Pie!

So last week, some "hoplophobic broad" - as Joel over at "The Ultimate Answer to Kings" said - listed 20 questions that she thought were reasonable gun control questions.  Joel answered them, as did Sebastian from Snowflakes in Hell.

Said "broad" (whom I won't link to) immediately struck me as someone with a condescending attitude that said, "I'm so reasonable, you must agree with me...  How could you not agree with me?  What kind of knuckle-dragging Neanderthal are you???"  She seemed not really interested in anything someone might post, unless it was complete agreement that she is 100% right.  The way I read some of her questions, like:
Will you continue a reasonable discussion towards an end that might lead somewhere or is this an exercise in futility?
Is pretty much semantically equivalent to "are you still beating your wife?".  How about this gem of a question:

Do you believe that 30,000 gun deaths a year is too many?
What kind of intellectual garbage is that?  It depends on how many "needed killing".  Are you including people that the police killed?  Are you counting "children" the way that the gun-control nuts usually do, by including 18 year old gang bangers who die in drug wars?  That is too meaningless a question to have any rational response to.

Like every gun control freak I've come across, she's too concerned with the thing to consider the psycho holding it. 

Still, I find it an irresistible meme that I can't get out of my head.  I'm all for "reasonable" gun laws, but I'll bet anything that I find reasonable will scare her to death.  First of all, I believe the logical, ethical and even scientific argument for gun control is done.  Their side has completely lost.  John Lott has been proven right over and over again: "More Guns = Less Crime".  When Formerly Great Britain destroyed guns and rounded up family heirlooms, they were rewarded by going from middle of the pack rates to the highest violent crime rate in the EU, and one of the worst in the world.  In the first year after Heller, violent crime was down 25% in DC, as opposed to down about 10% in similarly sized cities that allowed firearms.


I think gun sales laws are too restrictive now. I think the whole setup of all sales having to go through an FFL who can only send it across state lines to another FFL just perpetuates a protected market and doesn't do any good for anybody other than FFLs.  What good does it do - if you're not a gun dealer?  Why can't I buy a gun online from Bud's or Impact or someone else and have it sent to me?  With an encryption system, I can prove who I am online just as easily as I can at a store, and we can even do an NCIS check without invoking the whole FFL system. 


Let's start here: any adult can walk into a sporting goods store in most places and walk out with a shotgun or a rifle with no waiting period. But if I wanted to buy an AR-15 or a Mossberg 500 from the factory or a store in another city, why does it have to go through an FFL's hands? Why can't I order a rifle or shotgun from an online gun store, or even an Amazon.com kind of "online superstore" and have it shipped to my house? What advantage is there to society from shipping it to an FFL?  In consumer goods, your local camera shop, say, really does have to compete with the big guys in New York. Gun shops don't have that. I can see how gun shops might really like this setup. They get an easy 20 bucks for filling out the form and "receiving" your shipment, but I don't think there's any value added to us or society.


We should never again allow a stupid "mean looking weapons ban" to pass.  I read that the number of assault rifles involved in crimes was 0.1% or some tiny number like that. I'll take a bet that the number of crimes involving rifles like a Remington 700 or other hunting rifle is essentially zero. The number of crimes you'd prevent is meaningless, so all it does is hassle people who like shooting those little rifles. 
There - not in the least bit scary looking.
If there's a 3-day waiting period for a handgun (without your CWFL), why can't you order a pistol from Bud's and wait 3 or 4 days for UPS to deliver it? What advantage is there to sending it to an FFL instead of to you? Again, with today's computer security, you could verify age, do an NICS check - anything the local shop can do - online. The whole idea of that 3 day wait was a "cooling off" period, so a hothead doesn't go buy a gun in a moment of anger and then go kill someone (personally, I have a hard time believing there were large numbers of that sort of crime anyway).  It's an extension of the ban on Saturday Night Specials, which (as far as I can tell) only had the effect of removing cheap, reasonably functional guns from people who couldn't afford better ones, and caused some smaller arms companies to either fold or change their product line.  But, fine, we'll play your infantile waiting game -- now how does waiting 3 days to pick up a gun in your city differ from waiting 3 days to get it delivered by UPS or FedEx?

I realize this is pipe dream stuff that has a snowball's chance in Florida of ever passing, but our current system really doesn't make sense to me.  I realize guns are deadly. But so are kitchen knives (how many crimes involve those?), gas barbecues, and on and on, up to cars and trucks.  I think the laws we have now are beyond unreasonable.  Are there problems in what I propose?  Probably, but I don't think there's anything unsolvable in there. 
There, now, hoplophobes.  It's so cute, how could it possibly hurt you?

Monday, April 1, 2013

The Next Frontier in Cryptography

The public key encryption systems that are the basis of GnuPG and PGP are really quite secure.  If you use a 2048 bit key, it's estimated that the time to factor that number with today's computers is 6.4 quadrillion years.  For the moment (don't hold your breath) that's more than six times the size of the US Deficit and unfunded liabilities, expressed in years and not dollars.

Quantum computing is supposed to change that and make it radically easier to break these keys by brute force:
In 1994, while at AT&T Bell Laboratories, mathematician Peter Shor developed a quantum algorithm that can factor large numbers in polynomial time.  Transitioning from classical to quantum computing, Shor's algorithm has the potential to break all of the existing public key schemes used today. 
There are many who believe that all of our modern security systems are in trouble once quantum computers hit.

I'm happy to divulge here a form of quantum cryptography you can perform at home. 

Quantum cryptography depends on the "spooky action at a distance", as Einstein called it, of quantum entanglement.  A pair of particles can't have the same quantum properties, so if you create a pair of photons, keep one and send the other to a remote site, and you know some property of your photon, like its spin, then you know the spin of the other.  Furthermore, you can change the state of your photon and the other one has to change because of entanglement, and the information of the state change has been measured at well over (4x) the speed of light.  If a third party tries to tap into the photons, they change its state letting you know that the data has been compromised. 

All you need to do is to use a pair of quantum tweezers to sort out the photons in small burst of laser light, keeping the ones you want and sending the rest on their way.   Until recently, optical tweezers required a lot of space and expensive equipment, like this:
but thanks to remarkable innovation here, I'm able to offer these photon-based quantum tweezers for the ridiculous price of $19.99. 
These precision quantum tweezers are great for sorting out the photons you want to send, but they are also great for trimming quantum eyebrows or quantum nose hair.  

And if you act now, we'll include this complete set of body armor so that when the bad guys "drug you and hit you with a $5 wrench", you'll be safe.  Free - you just pay shipping and handling of $4995. 
Act now. 


Sunday, March 31, 2013

Contemplating Privacy and Radio Communications 6

Some miscellaneous thoughts:

First off, back a few days ago, an anonymous commenter asked
Do you know of any available resources to build freq hopping and encrypted radios available to the public. It might be a good project to get some of your engineers working on, perhaps using this as a foundation: http://greatscottgadgets.com/hackrf/
All you need is a laptop and the Hackrf USB radio, throw on a GUI that makes signal strength and frequency selection easy, encryption and frequency hop loads, and you've got a military grade radio. 
I haven't kept up with this tech - the last time I saw similar things (and it may have been a dead end on the Internet) it was certainly not military grade, and I wasn't even sure it was Belkin grade.  That is, I'm not sure it was as good as commercial WiFi you can buy anywhere pretty cheaply.  I can't say I'm an expert at this, having just looked it over, but this is not a usable radio; it's a digital board that allows you to experiment with software defined radios (SDRs).   The HackRF page on Ars Electronica says
There are relatively few people in the world with the knowledge and tools required to develop new radio communications hardware, but there are many millions of people who have the ability to program a computer. General purpose computers are widely deployed, and opportunities to learn how to program them are available to a huge number of people.  HackRF gives all of those people the capability to explore the radio spectrum and develop creative new ways to communicate.
The difference is that HackRF doesn't seem to have any receiver sophistication and only a very low power transmitter stage that I can see.  I freely admit I could be wrong, but the block diagram sure doesn't show anything.  One of the paradoxes of SDRs is that they don't eliminate the need for filters; if anything, they become more important due to the aliases they respond to.  He describes it as combining "Licorice, Lemondrop, and Jellybean into a single USB-powered software radio".  Maybe I'm searching in all the wrong places, but a few searches with Bing retrieve nothing on them.  I don't think this is a GUI away from being useful, but hey!, prove me wrong!

SDRs for experimenters are not new at all.  Hams play with SoftRock, (also) a low power CW transceiver (Continuous Wave, the name hams tend to use for Morse code communications) that plugs into a USB port and a sound card.  These guys produce an HF SDR, transmit and receive, that is architecturally very similar to one I recently completed for a commercial design (naturally, I prefer the design trade choices that I made over theirs).  RFSpace has a product line of SDR receivers.   FlexRadio is a staple in the ham world; their SDRs are considered among the finest radios on the market. 

I recommend getting an amateur radio license because it brings with it the privileges to experiment with new modes and new technologies all on your own.  You can buy an FRS radio to talk to someone, but if you're a ham, you can invent your own mode with an outwardly similar radio, because you're expected to understand the technical requirements.  The technician class license conveys all amateur privileges above 30 MHz, plus it gives holders some privileges in the HF spectrum (high frequency or shortwave - capable of worldwide communication).  The American Radio Relay League is the dedicated organization that is closest to a "universal American ham club", although like the NRA, the ARRL is often criticized by non-member hams (well, not as often as the NRA).  If you want a completely non-official page, this guy seems pretty good.  

If you want to experiment with modes that require more than audio bandwidth, you need to be above 30 MHz, and you're going to need to experiment with radios (or have someone in your group that knows radio design).  Simply, most amateur gear is either surplus commercial gear or designed from the ground up for the narrowband modes that dominate.  Except for TV - hams have done regular TV at 400 MHz and above and are now doing digital TV.  A few months ago, I met hams who were buying surplus video equipment at WiFi frequencies and above.  They were playing with extending it out to long distances, and had made WiFi connections at 125 miles.  There is a ham band that overlaps the band allocated to WiFi, so the surplus gear is being used for ham purposes all the time.

As I said the other day, the use of ham radio to send encrypted messages, like a PGP-encrypted text file, is illegal, although the Feds have routinely allowed all sorts of things when a disaster happens.  If there is a total failure of civil order, I can't imagine this would be an enforcement priority.  Sort of like this old Far Side cartoon:
I think if you're going to learn how to set up and use communications, a ham license gets you the ability to do it in a licensed and permitted way. You can save the encrypted stuff for when you need it.
Simply using UHF or microwaves on a point to point link (no repeaters) will give you almost total anonymity. 

Finally, a couple of people (here and in email) have asked for book titles or other ways to learn about this field.  Most of the books I know of are at least somewhat mathematical.  Electronic Communications by Robert Schrader is a very good book, often used as a junior college text or supplement in ham classes.  Spread Spectrum Systems by Robert C. Dixon is one of the standard books.  Both of these are available in several editions and are often found used or in library sales.  The ARRL Handbook, published every year, has long been considered a very complete summary of modern ham radio theory and practice.  There's a difference between books published for working engineers and those published for school, where the aim is to impress the professors enough to become the textbook.  Because of this, I have a tendency to pick up old textbooks written from the working engineer's perspective.  I've often thought I've learned more from magazines and ham radio publications than my engineering texts, as those books have more insights per square inch than textbooks do. 


Wednesday, August 14, 2019

Starting to Look at 5G Cellular

In the academic sense, I'm not physically looking at a 5G link.  Smallville here will probably not get 5G for years and years.  I don't even get a particularly good 4G/LTE signal here at home.  Still, I hear the buzz and it makes me want to understand what the story is.

There's lots of buzz about 5G for the new technologies it's going to bring, but those largely come down to higher bandwidths and faster downloads for the users.  Numbers like 10 Gigabits/second get thrown around - orders of magnitude faster than 4G.  To the network providers, the attraction is that the number of subscriber devices they can support (sell) jumps up dramatically.  Just as 4G is faster than 3G was and every generation before it.  Despite the fact that 5G services won't roll out anywhere until - maybe - the end of calendar 2019, the buzz seems to center on the idea that whoever controls the networks will know everything about every business and every person in the country.  Why wait?  Avoid the rush and just get one of those "OK Google" or Alexa monitors to bug your own house now.  This security seems more like an encryption issue rather than whose base station it goes to.  No, I don't trust Huawei and the Chinese, but I don't trust the US either. 

That part about security comes from what's actually a completely unrelated technology to 5G, the drive to use internet connectivity to improve services of all kinds, call the Internet of Things, usually referred to as the IOT, or (as I like to call it) the Internet of Things That Just Don't Quite Work Right (IOTTJDQWR - which doesn't quite roll off the tongue as easily).  The IOT and it's cousin, the Industrial IOT, will do simple things like put water pumps, flood gates, and all sorts of civic and utility infrastructure on the net.  The vast majority of these things are not high bandwidth users and don't need the faster data rates that 5G promises, although the lower latency/faster network might be useful.  They could be done today, and many are done over industrial radio links. 

The promise of higher data rates brings the inevitable trade that higher rates usually require higher bandwidths and higher bandwidths usually require higher operating frequencies.  This also scares a lot of people.  Back to that in a minute, but first, let me show you a list of frequencies that 5G can use - not all of these will be in any particular device.  The list is from a document from Keysight, the former Hewlett Packard test equipment group, and still arguably the industry leader in this sort of test equipment. 


It's a bit of an eye chart if you don't enlarge it, but two things to notice are that the new frequencies are all printed in a greenish/teal sort of color; and that frequencies currently used for other purposes that have been reassigned for 5G (or dual purpose, it's not completely clear) are in purple.  Those in black, in the second vertical block, remain for LTE of various flavors.  The only new frequencies capable of high bandwidth, that are higher than the existing LTE services (virtually all below 3 Gigahertz - 3 GHz) are in the top right block and are in a few bands from 24 to 40 GHz.  Why not 60 GHz, where WiGig is currently all alone?  This chart shows why:

This shows the attenuation (loss of signal) due to dry air (in red), water vapor (blue) or the sum of the two losses (in black). You will see a huge peak of attenuation centered right on 60 GHz, going from around 0.3 dB/kilometer up to (guessing) 15 dB.  That means a transmitter on that peak has to put out almost 16 dB more power, or 40 times more power, than the lower frequency transmitter.  That huge a power difference means much more expensive hardware.  It turns out that dip in attenuation you see between the huge peak at 60 and the much smaller peak at about 22 GHz covers the 24 to 40 GHz range for the 5G signals. 

One thing that people don't seem to understand is that it's hard to get radio frequency energy into places you want it.  Even in a controlled, lab environment, on well designed hardware, we regularly fight to get thousandths of a watt that we expect to get but that nature just doesn't want to give up.  Furthermore, the higher the frequency, the more struggles that come. 

In the case of the 5G network, those struggles will be because the signals don't penetrate walls and other things as well as the lower 4G frequencies do.  It's going to call for more towers more closely spaced and fancier antennas.  The buzzword is MIMO - Multiple Input Multiple Output - it's a way of combining antennas to get better performance out of the network.  If you have a WiFi router with two or more antennas on it, you have that now. 

Is 5G going to be dangerous for people carrying handsets or walking around the city?  The power density requirement in FCC-OET Bulletin 56 is the same as for frequencies we've talked about here before, 1 milliwatt per square centimeter.  Industry is experienced with designing for these levels and I don't see any reason why it should be any more dangerous than existing networks.  If anything, because 24 to 40 GHz doesn't penetrate as well as lower frequencies, it might be safer.

I've written many times on RF safety and can do so again.