code: def dump_raw(self, text, stream=None):
          
          encrypted = self.vault.encrypt(text)
          if stream:
              stream.write(encrypted)
          else:
              return encrypted
docs: Encrypt raw data and write to stream.