CECS-478-AuRave / SecureChat

End-To-End Ecryption app. Created using Ionic 2, Angular 2, and Express. All on the MEAN stack
Apache License 2.0
5 stars 7 forks source link

Allow Different encrypted messages to be stored. #70

Closed kuminin closed 7 years ago

kuminin commented 7 years ago
{
  "_id": "5841090b2a12cf54372d9fb9",
  "conversationID": "5840b911de8fe11352d23869_5840b926de8fe11352d2386a",
  "date": "2016-12-02T05:39:58.234Z",
  "__v": 1,
  "messages": [
    {
      "_id": "5841090b2a12cf54372d9fba",
      "message": [
        {
          "_id": "5841090b2a12cf54372d9fb7",
          "message": "Message Encrypted with Kumin's key.",
          "from": {
            "_id": "5840b926de8fe11352d2386a",
            "name": "Aaron Turner",
            "profilePhotoURL": "graph.facebook.com/363405437330119/picture"
          },
          "date": "2016-12-02T05:39:23.001Z",
          "issuedTo": {
            "_id": "5840b911de8fe11352d23869",
            "name": "Kumin In",
            "profilePhotoURL": "graph.facebook.com/10209053747955912/picture"
          },
          "messageKey": "312bdfjg2Efh241",
          "__v": 0
        },
        {
          "_id": "5841090b2a12cf54372d9fb8",
          "message": "Message Encrypted with Aaron's key.",
          "from": {
            "_id": "5840b926de8fe11352d2386a",
            "name": "Aaron Turner",
            "profilePhotoURL": "graph.facebook.com/363405437330119/picture"
          },
          "date": "2016-12-02T05:39:23.001Z",
          "issuedTo": {
            "_id": "5840b926de8fe11352d2386a",
            "name": "Aaron Turner",
            "profilePhotoURL": "graph.facebook.com/363405437330119/picture"
          },
          "messageKey": "443j2h4jl13kkfH",
          "__v": 0
        }
      ]
    },
    {
      "_id": "5841092e2a12cf54372d9fbd",
      "message": [
        {
          "_id": "5841092e2a12cf54372d9fbb",
          "message": "Message Encrypted with Kumin's key.",
          "from": {
            "_id": "5840b911de8fe11352d23869",
            "name": "Kumin In",
            "profilePhotoURL": "graph.facebook.com/10209053747955912/picture"
          },
          "date": "2016-12-02T05:39:58.234Z",
          "issuedTo": {
            "_id": "5840b911de8fe11352d23869",
            "name": "Kumin In",
            "profilePhotoURL": "graph.facebook.com/10209053747955912/picture"
          },
          "messageKey": "312bdfjg2Efh241",
          "__v": 0
        },
        {
          "_id": "5841092e2a12cf54372d9fbc",
          "message": "Message Encrypted with Aaron's key.",
          "from": {
            "_id": "5840b911de8fe11352d23869",
            "name": "Kumin In",
            "profilePhotoURL": "graph.facebook.com/10209053747955912/picture"
          },
          "date": "2016-12-02T05:39:58.234Z",
          "issuedTo": {
            "_id": "5840b926de8fe11352d2386a",
            "name": "Aaron Turner",
            "profilePhotoURL": "graph.facebook.com/363405437330119/picture"
          },
          "messageKey": "443j2h4jl13kkfH",
          "__v": 0
        }
      ]
    }
  ],
  "members": [
    "5840b911de8fe11352d23869",
    "5840b926de8fe11352d2386a"
  ]
}