Tesla Key Card Protocol
Researched by Robert Quattlebaum email@example.com.
Last updated 2020-01-23.
|import hmac, hashlib|
|# Data from I²C trace at https://hackaday.io/project/19480-raspberry-pi-camera-v21-reversed/log/52547-i2c-logic-analyzer-trace|
|# Secret key from VideoCore blob|
|# serial, serial[7:4], serial[3:0]|
|serial = bytes.fromhex("EE8C196D8301230B59")|
|# rPi -> camera random number|
|numIn = bytes.fromhex("5805F3C898C3133154498E082F2E703516F2DBD1")|
This utility script deploy a single local file to an existing Firebase Hosting site. Other files that are already deployed are left unmodified.
The difference with
firebase deploy is that this script does not require you to have a local snapshot of all hosted files,
you just need the one file that you want to add/update.
USE AT YOUR OWN RISK. NO WARRANTY IS PROVIDED.
|* create a Google Sheet then go to Tools > Script Editor|
|* Paste this code into the editor. Save.|
|* Publish > Deploy as Web App|
|* Set new version, publish as me, who has access - anyone, even anon.|
|* GET to the URL, add on end ?sheet=[sheet name]|
|* Sheet name is the sheet name, manage appropriately (no spaces or symbols to keep it simple)|
|* Request returns JSON representation of the sheet.|
This gist will show how to setup Raspbian Stretch as a headless Bluetooth A2DP audio sink. This will allow your phone, laptop or other Bluetooth device to play audio wirelessly through a Rasperry Pi.
A quick search will turn up a plethora of tutorials on setting up A2DP on the Raspberry Pi. However, I felt this gist was necessary because this solution is:
Hello, brethren :-)
As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".
This homebrewed notation I typically use when evaluating secure boot designs of embedded devices. It doesn't apply accurately for the iOS review, hides the key-wrapping schema for example. But it's enough to keep track of storage location of secrets and some interdependency.
pfk = 256bit per_file_key