Skip to content

Instantly share code, notes, and snippets.

View prahaladbelavadi's full-sized avatar

Prahalad Belavadi prahaladbelavadi

View GitHub Profile

Simple Security Guidelines

Using an iDevice? (Best option)

  • Use an iPod or an iPad without a SIM card
  • Use an iPhone
  • Do not jailbreak
  • Always upgrade to new iOS versions
  • Use Brave browser

Need Secure chat?

@prahaladbelavadi
prahaladbelavadi / js-crypto-libraries.md
Created October 23, 2018 11:02 — forked from jo/js-crypto-libraries.md
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

I start with a list and plan to create a comparison table.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

@prahaladbelavadi
prahaladbelavadi / redis.md
Created August 1, 2018 10:23
Redis commands
  • GET parameter
  • SET xyz: "something"
  • INCR xyz increments integer by one atomically
  • del xyz deletes a collection
  • EXPIRE resource:lock 120 time specified for it to expire in seconds
  • TTL resource:Lock checks for time remaining for a key to exist The -2 for the TTL of the key means that the key does not exist (anymore). A -1 for the TTL of the key means that it will never expire. Note that if you SET a key, its TTL will be reset.
  • Rpush parameter places the object at the end of the list;
  • Lpush places the object at the beginning of the list; LRANGE gives a subset of the list.
@prahaladbelavadi
prahaladbelavadi / crypto-buffer.js
Created July 15, 2018 13:33 — forked from chris-rock/crypto-buffer.js
Encrypt and decrypt buffers in nodejs
// Part of https://github.com/chris-rock/node-crypto-examples
var crypto = require('crypto'),
algorithm = 'aes-256-ctr',
password = 'd6F3Efeq';
function encrypt(buffer){
var cipher = crypto.createCipher(algorithm,password)
var crypted = Buffer.concat([cipher.update(buffer),cipher.final()]);
return crypted;
@prahaladbelavadi
prahaladbelavadi / jupyter_shortcuts.md
Created May 15, 2018 10:14 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • ⌘ : Command
@prahaladbelavadi
prahaladbelavadi / blockstack.txt
Created May 10, 2018 08:18
Blockstack Verification
Verifying my Blockstack ID is secured with the address 18Y2t6BKRGcwKPnVueUHwfk4RZ6WBdrNFn https://explorer.blockstack.org/address/18Y2t6BKRGcwKPnVueUHwfk4RZ6WBdrNFn
@prahaladbelavadi
prahaladbelavadi / onename-declaration.txt
Created September 15, 2017 11:21
Onename declaration
Verifying that "prahaladbelavadi.id" is my Blockstack ID. https://onename.com/prahaladbelavadi
testing axample
@prahaladbelavadi
prahaladbelavadi / keybase.md
Created November 28, 2016 09:11
Keybase.io proof

Keybase proof

I hereby claim:

  • I am prahaladbelavadi on github.
  • I am prahaladbelavadi (https://keybase.io/prahaladbelavadi) on keybase.
  • I have a public key whose fingerprint is 4E3D 25C5 7BA3 4CE1 8222 8D5E 44A8 A493 9C09 A45C

To claim this, I am signing this object: