I hereby claim:
- I am jbdatko on github.
- I am jbdatko (https://keybase.io/jbdatko) on keybase.
- I have a public key ASBbd9d5mnvZpHaudSZAhk38DQ3nT9bn6L9RJLPoGpjzQgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am jbdatko on github. | |
* I am jbdatko (https://keybase.io/jbdatko) on keybase. | |
* I have a public key whose fingerprint is 6F33 342B C6CF D0C8 4DA0 C7CA F7C6 0BFB B3B9 9FA3 | |
To claim this, I am signing this object: |
/* | |
* TOTP: Time-Based One-Time Password Algorithm | |
* Copyright (c) 2015, David M. Syzdek <[email protected]> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are | |
* met: | |
* | |
* 1. Redistributions of source code must retain the above copyright |
const int TAG_LENGTH = 13; | |
char tag[TAG_LENGTH + 2]; | |
int index = 0; | |
void setup(){ | |
Serial.begin(9600); | |
memset(tag, 0, sizeof(tag)); | |
} | |
void loop(){ |
#include <tlc_shifts.h> | |
#include <tlc_config.h> | |
#include <tlc_animations.h> | |
#include <tlc_fades.h> | |
#include <tlc_servos.h> | |
#include <Tlc5940.h> | |
#include <tlc_progmem_utils.h> | |
/* | |
Blinky code for SAINTcon 2014 |
@Book{datko2014, | |
author = "Josh Datko", | |
title = "BeagleBone for Secret Agents", | |
publisher = "Packt Publishing", | |
year = 2014, | |
address = "Birmingham, UK", | |
month = "September", | |
url = "https://www.packtpub.com/hardware-and-creative/beaglebone-secret-agents" | |
} |
#!/bin/bash | |
if [[ "$#" -ne 1 ]]; then | |
echo "$0 usage: newhostname (run as root)" | |
exit 1 | |
fi | |
name=$(hostname) | |
hostname $1 |
/* -*- mode: c; c-file-style: "gnu" -*- | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
I hereby claim:
To claim this, I am signing this object:
from Crypto.Cipher import AES | |
from Crypto.Random import get_random_bytes | |
hdr = b'To your eyes only' | |
plaintext = b'Attack at dawn' | |
key = b'Sixteen byte key' | |
nonce = get_random_bytes(11) | |
cipher = AES.new(key, AES.MODE_CCM, nonce) | |
cipher.update(hdr) | |
msg = nonce, hdr, cipher.encrypt(plaintext), cipher.digest() |