function pouchAttachmentBinaryHash(data) {
  return new Promise(function (res) {
    binaryMd5(data, function (d) {
      res('md5-' + d);
    });
  });
}
/**
 * create the same diggest as an attachment with that data
 * would have
 */
create the same diggest as an attachment with that data
would have
create the same diggest as an attachment with that data would have
function pouchAttachmentBinaryHash(data) {
  return new Promise(function (res) {
    binaryMd5(data, function (d) {
      res('md5-' + d);
    });
  });
}
function pouchAttachmentBinaryHash ( data ) { return new Promise ( function ( res ) { binaryMd5 ( data , function ( d ) { res ( 'md5-' + d ) ; } ) ; } ) ; }
create the same diggest as an attachment with that data
 would have
create the same diggest as an attachment with that data would have