calvinmetcalf / crypto-pouch

plugin for encrypted pouchdb/couchdb databases
MIT License
243 stars 43 forks source link

add option to leave properties unencrypted #25

Closed gr2m closed 8 years ago

gr2m commented 8 years ago

this can be used as a workaround for https://github.com/calvinmetcalf/crypto-pouch/issues/13. It's a follow up to https://github.com/calvinmetcalf/crypto-pouch/pull/18

db.crypto('password', {modp: 'modp5', ignore: '_attachments'})
.then(function () {
    return db.put({
      _id: 'id-12345678',
      _attachments: {
        'att.txt': {
          content_type: 'text/plain',
          data: 'TGVnZW5kYXJ5IGhlYXJ0cywgdGVhciB1cyBhbGwgYXBhcnQKTWFrZS' +
                'BvdXIgZW1vdGlvbnMgYmxlZWQsIGNyeWluZyBvdXQgaW4gbmVlZA=='
        }
      }
    });
  })
gr2m commented 8 years ago

I’ll clean up commits once I get the go from @calvinmetcalf

calvinmetcalf commented 8 years ago

again blocked by nolanlawson/transform-pouch#19

gr2m commented 8 years ago

@calvinmetcalf could you explain please?

calvinmetcalf commented 8 years ago

I have a major refactor (#26 waiting on that pull)

nolanlawson commented 8 years ago

https://github.com/nolanlawson/transform-pouch/pull/19 is fixed now; anything else you need for this PR?

gr2m commented 8 years ago

closing in favor of https://github.com/calvinmetcalf/crypto-pouch/pull/29