Better HN
topnewbestaskshowjobs
Log inSign up

towynlin

5 karma · joined Oct 9, 2012 (14y ago) · 3 submissions

coder-composer

Founder of Particle https://www.particle.io/

PhD in music composition http://about.me/zachary.crockett

https://twitter.com/towynlin

[ my public key: https://keybase.io/towynlin; my proof: https://keybase.io/towynlin/sigs/sfKWCUsUE4HXLcxoFkp3y0fQaWyQPW2YCMKXZUr0Bf4 ]

Submissions

1.

Spark Sprint 4 Review: Wow, much reliable, so better(blog.spark.io ↗)

2 points · by towynlin · 12y ago · discuss

comment 12y ago · link · parent

Great suggestion! I just added this as a security overview section of the README.

https://github.com/spark/core-communication-lib

comment 12y ago · link · parent

RSA encrypt initial handshake message to cloud: https://github.com/spark/core-communication-lib/blob/master/...

Return message from cloud is decrypted with an RSA private key on the Core: https://github.com/spark/core-communication-lib/blob/master/...

An HMAC signature is verified: https://github.com/spark/core-communication-lib/blob/master/...

If everything checks out, AES-128-CBC session key is saved and IV is rotated with every message exchanged:

encrypt: https://github.com/spark/core-communication-lib/blob/master/...

decrypt: https://github.com/spark/core-communication-lib/blob/master/...

Cheers, Zachary Crockett Spark CTO ;)