An open API service indexing awesome lists of open source software.

https://github.com/spaze/upc_keys-lambda

Peter "blasty" Geissler's upc_keys.c with custom prefix support and Lambda sauce
https://github.com/spaze/upc_keys-lambda

Last synced: about 2 months ago
JSON representation

Peter "blasty" Geissler's upc_keys.c with custom prefix support and Lambda sauce

Awesome Lists containing this project

README

        

# upc_keys.c with custom prefix support and Lambda sauce

This is Peter "blasty" Geissler's [original upc_keys.c](https://haxx.in/upc_keys.c), modified to support custom prefixes. The output is also more machine-readable. This is what powers my [passphrase recovery tool for `UPC1234567` devices](https://upc.michalspacek.cz/).

I run this code in [AWS Lambda](https://aws.amazon.com/lambda/), so I've included a [short howto](apigw.md) for setting it up, Node.js [wrapper](index.js), and [Makefile](Makefile) to make a .zip file to upload to Lambda.

## Building it
`make build` or `gcc -O3 -o upc_keys upc_keys.c -lcrypto`

## Using it
`upc_keys `

Where:

- `` should be in `UPCxxxxxxx` format
- `` should be a string of comma separated serial number prefixes