Skip to content

Instantly share code, notes, and snippets.

View hackergrrl's full-sized avatar
🌱

Kira Oakley hackergrrl

🌱
View GitHub Profile
@mattdesl
mattdesl / electron-hurdles.md
Last active August 31, 2016 14:22
Electron + Node hurdles

A short list of hurdles to get Electron working more like Node, and how I'm tackling them.

  • using renderer process.stdin with Buffer seems difficult/impossible
    • alternative: send buffered stdin as a string to the renderer
  • renderer process.argv needs to be require('remote').process.argv
    • should be patched in preload script to ensure your Node dependencies work correctly
  • syntax errors in <script src="index.js"> do not print to terminal
    • window.onerror in a preload script can be used to detect these problems
    • only provides file, line number and a minimal error message
  • stderr gets cluttered with Chromium logs
@dominictarr
dominictarr / readme.md
Last active April 20, 2023 02:24
thoughts on crypto modules

We need better crypto primitives and modules - there are lots of standards out there that are dangerous! Things that seem like they should work, don't and this leaves security holes where they shouldn't be, or creates situations where an application must be implemented with knowledge of the internal features of crypto "primitives". example: length-extention attack on api authentication

What is right about the word primitive: simple api + clear security properties (* this isn't always the case, but it can and should be) But, there are other great crypto "primitives" (modules) that are made from actual primitives but never the less provide a simple api and clear properties. A good example of this is nacl's crypto_box it has eliptic curves, salsa20 and poly1305 to create a encrypted buffer that can only be decrypted by the intended key.

easy primitives

  • hash (except hashes that have length extension attacks)
  • digital signatures (bu
@dominictarr
dominictarr / CYPHERLINK.md
Last active July 4, 2024 07:07
Cypherlinks
@datagrok
datagrok / git-serve.md
Last active April 21, 2023 07:33
How to easily launch a temporary one-off git server from any local repository, to enable a peer-to-peer git workflow.