Skip to content

Instantly share code, notes, and snippets.

@jofftiquez
Last active December 13, 2016 07:20
Show Gist options
  • Save jofftiquez/d5abb5128ec76ecda95a187b2b41fbe0 to your computer and use it in GitHub Desktop.
Save jofftiquez/d5abb5128ec76ecda95a187b2b41fbe0 to your computer and use it in GitHub Desktop.

User Data stored to another HIPAA compliant database.

userPII:{
  id123:{
    name:'john doe',
    address:'...',
    etc:'...',
  }
}

Encrypt the id123 id

   $newId = someEncryptiongTool('id123', 'salt');

User records stored in firebase

  some-secret-records:{
      $newId:{ // the encrypted id
        foo:'bar',
        biz:'baz'
      }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment