Skip to content

Instantly share code, notes, and snippets.

View dennisliub's full-sized avatar

Dennis Lyubyvy dennisliub

  • Washington DC
View GitHub Profile
@dennisliub
dennisliub / PKI R encryption
Created May 9, 2018 16:46
How do I encrypt specific variables/columns in a data frame in R?
require(PKI)
key <- PKI.genRSAkey(2048)
x <- charToRaw("Hello, world!")
e <- PKI.encrypt(x, key)
y <- PKI.decrypt(e, key)
stopifnot(identical(x, y))
print(rawToChar(y))
# https://www.quora.com/How-do-I-encrypt-specific-variables-columns-using-SHA-1-in-a-data-frame-in-R
@dennisliub
dennisliub / genesis_public_key
Created March 4, 2018 22:53
genesis_public_key
049953e8a2de9c0eb73c1e5ce48287b9bbcd6e2d7340215e85764387d8b4e013bbaa7a0d6ff70f75b14d26e694e81ae1d98bcb886e92fbad202430b2503073cc41;romanornr
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.