Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-495

ClientEncryption Shell API Class

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.8.0
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • 5
    • Iteration Tangerine
    • Needed

       

      Mongo.getClientEncryption(): ClientEncryption Return ClientEncryption instance
      ClientEncryption.encrypt(
        encryptionKeyId: UUID,
        value: document <with supported types>,
        encryptionAlgorithm: string
      ): BinData with subtype 6
      ClientEncryption.encrypt(
        value: document <with supported types>,
        options: {     keyId: <[ClientEncryption.DatakeyId|https://mongodb.github.io/node-mongodb-native/3.6/api/ClientEncryption.html#~dataKeyId]>,     KeyAltName: string,     algorithm: string   }

      )

      ClientEncryption.decrypt(
        encryptedValue: BinData with subtype 6
      ): document
      ClientEncryption.decrypt(
        value: Buffer,
      )

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: