Encrypt Data On The Fly On A Pi With Cryptopuck

There was a time that encryption was almost a dirty word; a concept that really only applied to people with something to hide. If you said you wanted to encrypt your hard drive, it may as well have been an admission to a crime. But now more than ever it’s clear that encryption, whether it’s on our personal devices or on the web, is a basic necessity in a digital society. The age of Big Data is upon us, and unless you’re particularly fond of being a row in a database, you need to do everything you can to limit the amount of plaintext data you have.

Of course, it’s sometimes easier said than done. Not everyone has the time or desire to learn how the different cryptographic packages work, others may be working on systems that simply don’t have the capability. What do you do when you want to encrypt some files, but the traditional methods are out of reach?

Enter the latest project from [Dimitris Platis]: Cryptopuck. By combining the ever-versatile Raspberry Pi Zero, some clever Python programs, and a few odds and ends in a 3D printed case, he has created a completely self-contained encryption device that anyone can use. Stick a USB flash drive in, wait for the LED to stop blinking, and all your files are now securely encrypted and only accessible by those who have the private key. [Dimitris] envisions a device like this could be invaluable for reporters and photographers on the front lines, protesters, or really anyone who needs a discreet way of quickly securing data but may not have access to a computer.

The hardware side is really just the Pi, a switch, a single LED for notifications, and a battery. The real magic comes from the software, where [Dimitris] has leveraged PyCrypto to perform the AES-256 encryption, and a combination of pyinotify and udiskie to detect new mounted volumes and act on them. The various Python scripts that make up the Cryptopuck suite are all available on the project’s GitHub page, but [Dimitris] makes it very clear the software is to be considered a proof of concept, and has not undergone any sort of security audit.

For some background information on how the software used by the Cryptopuck works you may want to check out this excellent primer from a few years back; though if you’d like to read up on why encryption is so important, you don’t need to go nearly as far back in time.

Continue reading “Encrypt Data On The Fly On A Pi With Cryptopuck”

Hackaday Prize Entry: IoT Nixie Clocks

Nixie clocks are the in thing right now, and they have been for at least a decade. For his Hackaday Prize entry, [mladen] is bringing things into the 21st century with a USB-powered, IoT Nixie clock. It displays the time, temperature, the current cryptocurrency price in fiat, your current number of Twitter followers, the number of updoots on your latest reddit meme, or anything else that can be expressed as four digits.

This Nixie clock uses four IN-12B tubes, with the dot, which are more or less standard when it comes to small Nixie clocks. These tubes are mounted directly to a PCB, which is in turn mounted at 90 degrees to the main board, providing a slim form factor for the machined wood or aluminum enclosure.

The control electronics are built around the ESP8266, with a handy USB connection providing the power and a serial connection. A BQ3200 real time clock keeps the time with the help of a supercapacitor. The killer feature here is a piezo sensor to detect taps on the enclosure. Hit the clock once, and it displays the time. Hit it two times, and the current balance of your bitcoin wallet is displayed. It’s a great project, and [mladen] is hoping to turn this project into a product and put it up on Crowdsupply soon. All in all, a great entry to The Hackaday Prize.

Ask Hackaday: What Tools Do You Reach For First?

Let’s face it, in your workshop there are convenient tools, and there are quality tools, but so often they aren’t both. Think back to the tools you reach for first. Very often for me, speed and convenience win out. I don’t want to look too hard for that drill or saw, and want them to work as expected when I reach for them. At the same time, there are some tools that simply must be stored away, and can’t perch on my workbench forever or sit on a shelf.

It really is a balancing act sometimes. I don’t have a sure fire formula for when to break out the expensive tools, and what jobs are easy with the less expensive. I’ll lay out some of my most-often utilized tools in my arsenal, then I want to hear from you on your own faves.

Continue reading “Ask Hackaday: What Tools Do You Reach For First?”

Recreating The Mythbusters Rocket Chevy – At Scale

If you tuned into the first ever episode of Mythbusters way back when, you’ll remember a certain rocket-powered Chevy Impala. [David Windestal] decided to recreate this – at 1:10 scale.

The car in question is a Hobbyking Desert Fox RC car – normally a four-wheel drive truck which ships ready-to-run, making it a great way to get a project started quickly. Rocket power is provided by the same type of motor used in the Swedish Rocket Knives we’ve covered previously.

Initial testing proves unsuccessful – the car simply tumbles out of control when the rocket is fired. It takes a beating, losing a wheel in the process. Following on from this, a decision is made to cook up a slower burning rocket motor and switch to an asphalt surface for testing. This is much more succesful and the car begins to see some properly high speeds, nearly peeling the tyres off the rim in the process!

It’s a fun concept that could likely be replicated with off-the-shelf rocket motors, too. Throw us your ideas for better rocket powered transports in the comments below.

[Thanks to Heinrich for the tip!]
Continue reading “Recreating The Mythbusters Rocket Chevy – At Scale”

Computers That Never Were

Today it is easier than ever to learn how to program a computer. Everyone has one (and probably has several) and there are tons of resources available. You can even program entirely in your web browser and avoid having to install programming languages and other arcane software. But it wasn’t always like this. In the sixties and seventies, you usually learned to program on computers that didn’t exist. I was recently musing about those computers that were never real and wondering if we are better off now with a computer at every neophyte’s fingertips or if somehow these fictional computing devices were useful in the education process.

Back in the day, almost no one had a computer. Even if you were in the computer business, the chances that you had a computer that was all yours was almost unheard of. In the old days, computers cost money — a lot of money. They required special power and cooling. They needed a platoon of people to operate them. They took up a lot of space. The idea of letting students just run programs to learn was ludicrous.

Continue reading “Computers That Never Were”

A Raspberry Pi Rain Man In The Making

We see a lot of Raspberry Pis used to play games, but this is something entirely different from the latest RetroPie build. This Raspberry Pi is learning how to read playing cards, with the goal of becoming the ultimate card counting blackjack player.

If [Taxi-guy] hasn’t named his project Rain Man, we humbly suggest that he does so. Because a Pi that can count into a six-deck shoe would be quite a thing, even though it would never be allowed anywhere near a casino. Hurdle number one in counting cards is reading them, and [Taxi-guy] has done a solid job of leveraging the power of OpenCV on a Pi 3 for the task. His description in the video below is very detailed, but the approach is simple: find the cards in a PiCam image of the playing field using a combination of thresholding and contouring. Then, with the cards isolated, compare the rank and suit in the upper left corner of the rotated card image to prototype images to identify the card. The Pi provides enough horsepower to quickly identify an arbitrary number of non-overlapping cards; we assume [Taxi-guy] will have to address overlapping cards and decks that use different fonts at some point.

We’re keen to see this Pi playing blackjack someday. As he’s coding that up, he may want to look at algorithmic approaches to blackjack strategies, and the real odds of beating the house.

Continue reading “A Raspberry Pi Rain Man In The Making”

Nematoduino: A Roundworm Neural Model On An Arduino

When it comes to building a neural network to simulate complex behavior, Arduino isn’t exactly the first platform that springs to mind. But when your goal is to model the behavior of an organism with only a handful of neurons, the constraints presented by an Arduino start to make sense.

It may be the most important non-segmented worm you’ve never heard of, but Caenorhabditis elegans, mercifully abbreviated C. elegans, is an important model organism for neurobiology, having had its entire nervous system mapped in 2012. [Nathan Griffith] used this “connectome” to simulate a subset of the diminutive nematode’s behaviors, specifically movements toward attractants and away from obstacles. Riding atop a small robot chassis, the Arduino sends signals to the motors when the model determines it’s time to fire the virtual worm’s muscles. An ultrasonic sensor stands in for the “nose touch” neurons of the real worm, and when the model is not busy avoiding a touch, it’s actively seeking something to eat using the “chemotaxis” behavior. The model is up on GitHub and [Nathan] hopes it provides an approachable platform for would-be neuroroboticists.

This isn’t the first time someone has modeled the nematode’s connectome in silico, but kudos to [Nathan] for accomplishing it within the constraints an Arduino presents.

Continue reading “Nematoduino: A Roundworm Neural Model On An Arduino”