Practical IoT Cryptography On The Espressif ESP8266

The Espressif ESP8266 chipset makes three-dollar ‘Internet of Things’ development boards an economic reality. According to the popular automatic firmware-building site nodeMCU-builds, in the last 60 days there have been 13,341 custom firmware builds for that platform. Of those, only 19% have SSL support, and 10% include the cryptography module.

We’re often critical of the lack of security in the IoT sector, and frequently cover botnets and other attacks, but will we hold our projects to the same standards we demand? Will we stop at identifying the problem, or can we be part of the solution?

This article will focus on applying AES encryption and hash authorization functions to the MQTT protocol using the popular ESP8266 chip running NodeMCU firmware. Our purpose is not to provide a copy/paste panacea, but to go through the process step by step, identifying challenges and solutions along the way. The result is a system that’s end-to-end encrypted and authenticated, preventing eavesdropping along the way, and spoofing of valid data, without relying on SSL.

We’re aware that there are also more powerful platforms that can easily support SSL (e.g. Raspberry Pi, Orange Pi, FriendlyARM), but let’s start with the cheapest hardware most of us have lying around, and a protocol suitable for many of our projects. AES is something you could implement on an AVR if you needed to.

Continue reading “Practical IoT Cryptography On The Espressif ESP8266”

Making A Wearable NFC Bus Pass

[Stephen Cognetta] is trying to get the total number of things he owns down below 115, and he’s always looking for ways to streamline his life.

Toward this goal he dissolved his SF Transit Clipper Card in acetone to get at the NFC tag embedded inside. The tag consists of a tiny chip attached to an antenna the size of the card itself. It took about three days (video below the break) for the layers to separate and [Stephen] was able to extricate the tag.

He ended up trying a few different ways of storing the delicate chip and antenna, including a lump of Sugru as well as a waterproof aspirin band, pictured to the right.

One supposes the transit pass idea might save you a little time, but what would really simplify your life would be having a single wearable tag that unlocked a bunch of things. Also it should be noted that, un-coolly, damaging a card violates SF Transit’s terms of service…

HaD has covered NFC wearables before, including the phone-unlocking NFC ring as well as the NFC ring box. This NFC-controlled infinity mirror makes great use of the technology.

Continue reading “Making A Wearable NFC Bus Pass”

Restoring A Retro 747 Control Display Unit

Anyone who’s into retro aviation gear falls in love with those mysterious displays, dials, keypads, banks of knife switches. There’s a lot of sexy in those devices, built with high standards in a time when a lot of it was assembled by hand.

[Jeremy Gilbert] bought a 747-200’s Control Display Unit (CDU)– the interface with the late ’70s in-flight computer–and is bringing it back to life in a Hackaday.io project. His goal is to get it to light up and operate just as if it were installed in a 747.

Of particular interest is the display, which turned out to consist of a series of 5×7 matrices (seen on the right) controlled by chips no one uses any more. However, [Jeremy] found a blog post where someone had hacked out Arduino code for a cousin of the chip, saving him a lot of time. However, he’s got a lot more sleuthing yet to do.

If you’re into retro displays, we’ve mentioned a number of good ones, including the legendary Apollo DSKY and an awesome retrocomputer.

 

 

 

An Antenna That Really Cooks–Really

[9A4OV] set up a receiver using the HackRF board and an LNA that can receive the NOAA 19 satellite. Of course, a receiver needs an antenna, and he made one using a cooking pot. The antenna isn’t ideal – at least indoors – but it does work. He’s hoping to tweak it to get better reception. You can see videos of the antenna and the resulting reception, below.

The satellite is sending High-Resolution Picture Transmission (HRPT) data which provides a higher image quality than Automatic Picture Transmission (APT). APT is at 137 MHz, but HRPT is at 1698 MHz and typically requires a better receiver and antenna system.

Continue reading “An Antenna That Really Cooks–Really”

Life-Sized Pinball Drop Targets

[Bob] wanted to build a pinball-drop-style resetting target that he could use while practicing with his pistol. His first idea was to make the targets sturdy enough for use with 9 mm ammunition, and he planned to use 1/2” thick steel for the targets and 11-gauge steel tubing for the frame. However, the targets weighed 50 pounds together and that was more weight than the pneumatic actuators could lift. He ended up using 1/4” steel and thereby halving weight. The downside was that [Bob] had to switch out the nine for a .22.

Controlling everything is a 555 circuit. When triggered, it opens up a relay for one second, which trips the solenoid valve controlling the pneumatic actuators. Originally he wanted to have switches under each target, and only by dropping all four would the reset circuit be triggered. However, he built a simpler solution: a bulletproof button off to one side–effectively a fifth target–that when triggered resets the targets.

HaD have some pretty good shots in our number but we’d probably end up hitting the pneumatic actuators at least once. [Bob] did add 16-gauge steel sheeting to protect the air lines and wires from bullet splatter, which in his experience is more of a threat than a direct hit.

 

 

Fight A Minotaur With This Gorgeous Handheld

[Jason Carlson]’s favorite game as kid was 1983’s Treasure of Tarmin by Intellivision, a maze game that eventually came to be called Minotaur. As an adult there was only one thing he could do: remake it on a beautiful Arduino-based handheld.

[Jason] built the handheld out of a small-footprint Arduino Mega clone, a 1.8” LCD from Adafruit, a 5 V booster, a 1” speaker and vibe motor for haptic feedback. There are some nice touches, like the joystick with a custom Sugru top and a surprisingly elegant 2 x AA battery holder — harvested from a Yamaha guitar.

The maze maps are all the same as the original game, which [Jason] found online, but he stored the maps as bytes in an array to speed up the game—there was a flicker in the refresh already. However he added a progress map so players could see every area that was explored. In addition to Minotaur [Jason] also added remakes of Tetris, Simon and Snake, simpler games he wrote to test out the hardware.

We’ve published a bunch of handheld gaming projects over the years, including putting a Pi Zero in a GameBoy, building a throwback handheld, and playing Ocarina of Time on a N64 handheld.

Continue reading “Fight A Minotaur With This Gorgeous Handheld”

The Immersive Flight Simulator From 1989

The history of PC gaming showers games such a Wolfenstein 3D and Doom with the honor of having the most advanced graphics of the day. Often overlooked is Microsoft Flight Simulator and earlier, pre-Microsoft versions from subLOGIC, including the 1977 Apple II version. [Wayne Piekarski] was playing around with MS Flight Simulator 4 recently, and wanted it to be a bit more like his modern flight sim based on X-Plane 11. That meant multiple monitors, and the results are amazing.

The video and networking capabilities for MS Flight Sim 4, while very impressive for the late 80s, are still very limited. In 1989, computers only supported a single display, and while FS4 had the ability to network machines together for dogfighting, there was no way to set the camera viewpoint to the remote aircraft.

The solution to this problem came in the form of memory dumps. Since [Wayne] is running FS4 in DOSBox, he’s able to read the memory of one instance of the game, and write those memory locations to another instance of the game. There were only 18 bytes of memory in the instance of DOSBox that included heading, altitude, roll, and pitch information for the simulated aircraft. [Wayne] is sending this data to other instances of FS4 — effectively mirroring the game on another machine — and changing the camera view to look out the left and right windows. He displayed those views on additional monitors, and was done.

The results are exactly what you would expect. [Wayne] is now taking off from Meigs Field and buzzing the ten or twelve buildings in downtown Chicago with a panoramic 180° view. Check out the videos of that in action below.

Continue reading “The Immersive Flight Simulator From 1989”