I hereby claim:
- I am szarapka on github.
- I am szarapka (https://keybase.io/szarapka) on keybase.
- I have a public key whose fingerprint is 7DD0 0EC0 5C6A BB3E 1687 9B8B A561 9050 076C 201E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Encrypting text fields in Mongoose is easy using Node's built-in crypto module. You might want to do this if you're using MongoDB as a service (see the recent MongoHQ security breach); or, if you're storing OAuth tokens that could, in the wrong hands, screw with somebody's account on a 3rd party service. (Of course, you should never encrypt passwords: those should be hashed.)
Imagine you have a Mongoose model like that shown below, which is modified only slighly from the example on the MongooseJS homepage.
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/test');
var User = mongoose.model('User', {
name: String,
Verifying that +szarapka is my blockchain ID. https://onename.com/szarapka |