UiPath Documentation
activities
latest
false

Entwickleraktivitäten

Letzte Aktualisierung 21. Apr. 2026

Datei verschlüsseln (Encrypt File)

UiPath.Cryptography.Activities.EncryptFile

Beschreibung

Verschlüsselt eine Datei mit einem Schlüssel basierend auf einer angegebenen Schlüsselverschlüsselung und einem Algorithmus.

Projektkompatibilität

Windows - Legacy | Windows | Plattformübergreifend

Windows, plattformübergreifende Konfiguration

  • Datei – Die zu verschlüsselnde Datei, gespeichert als IResource -Variable. Wählen Sie das Plus aus Dokumentationsbild -Menü, um zur Eingabe Eingabepfad zu wechseln.
  • Algorithm - A drop-down menu which enables you to select the encryption algorithm you want to use. The following options are available: AES (Deprecated), AES GCM, DES (Deprecated), RC2 (Non-FIPS) (Deprecated), Rijndael (Non-FIPS) (Deprecated), and TripleDES.
Erweiterte Optionen

Optionen

  • Key Encoding - The encoding used to interpret the key specified in the Key property. The following options are available: System default, Unicode, Unicode (Big-Endian), Unicode (UTF-32), Unicode (UTF-32 Big-Endian), US-ASCII, Western European (ISO), and Unicode (UTF-8).
  • Output file name and location - The path where you want to save the encrypted file. This field supports only strings and String variables.
    Hinweis:

    Relative Ordnerpfade werden empfohlen, um die unterschiedliche Dateistruktur zwischen Windows- und Linux-Maschinen beim Ausführen eines Projekts zu berücksichtigen. Ein relativer Pfad hat das Format newFolder/newFileName.enc. Die Aktivität erstellt den Zielordner, wenn er noch nicht vorhanden ist.

  • Overwrite - If a file already exists, selecting On overwrites it. If the toggle is set to Off, a new file is created. The default value is Off.
  • Bei Fehler fortsetzen – Gibt an, ob die Automatisierung fortgesetzt werden soll, auch wenn die Aktivität einen Fehler ausgibt. Dieses Feld unterstützt nur boolesche Werte (True, False). Der Standardwert ist False. Wenn das Feld also leer ist und ein Fehler auftritt, wird die Ausführung des Projekts angehalten. Wenn der Wert auf True gesetzt ist, wird die Ausführung des Projekts unabhängig von einem Fehler fortgesetzt.

Je nach Ausgabepfad und wenn die Datei bereits vorhanden ist, können die folgenden Ergebnisse auftreten:

Name und Speicherort der AusgabedateiÜberschreibenAusgabeergebnis
AufhebenAusEine Datei mit dem ursprünglichen Dateinamen und dem Suffix „_Verschlüsselt“. Wenn die Datei bereits vorhanden ist, wird ein Fehler ausgelöst.
AufhebenAufEine Datei mit dem ursprünglichen Dateinamen und dem Suffix „_Verschlüsselt“. Wenn die Datei bereits vorhanden ist, wird die Datei überschrieben.
Set (Satz)AusEine Datei gemäß Benutzereinstellung. Wenn die Datei bereits vorhanden ist, wird ein Fehler ausgelöst.
Set (Satz)AufEine Datei gemäß Benutzereinstellung. Wenn die Datei bereits vorhanden ist, wird die Datei überschrieben.

Ausgabe

  • Encrypted File - Reference to the decrypted file retrieved by the activity for use in other activities.

Windows – Legacy-Konfiguration

Eigenschaften-Panel

Allgemein

  • Bei Fehler fortsetzen – Gibt an, ob die Automatisierung fortgesetzt werden soll, auch wenn die Aktivität einen Fehler ausgibt. Dieses Feld unterstützt nur boolesche Werte (True, False). Der Standardwert ist False. Wenn das Feld also leer ist und ein Fehler auftritt, wird die Ausführung des Projekts angehalten. Wenn der Wert auf True gesetzt ist, wird die Ausführung des Projekts unabhängig von einem Fehler fortgesetzt.
    Hinweis:

    Wenn die Aktivität in Abfangen versuchen (Try Catch) enthalten ist und der Wert der Eigenschaft ContinueOnError auf Wahr True gesetzt ist, wird kein Fehler bei der Ausführung des Projekts abgefangen.

  • AnzeigeName (DisplayName) - Der Anzeigename der Aktivität.

Eingabe

  • Algorithm - A drop-down menu which enables you to select the encryption algorithm you want to use. The following options are available: AES (Deprecated), AES GCM, DES (Deprecated), RC2 (Non-FIPS) (Deprecated), Rijndael (Non-FIPS) (Deprecated), and TripleDES.

    Hinweis:

    Bei Verwendung des AES GCM -Algorithmus muss die Entschlüsselungseingabe im Format (verkettete Bytes) bereitgestellt werden: Salt (8bytes) + IV (12 bytes) + encryptedData (variable bytes) + Tag (16 bytes). Die Aktivität verwendet außerdem die folgenden Parameter:

    • Die Anzahl der PBKDF2-Iterationen ist 10.000
    • Der generierte Schlüssel ist 256-Bit (32 Byte)

    Beachten Sie, dass der generierte 256-Bit-Schlüssel nicht mit der Schlüsseleingabeoption identisch ist.

  • Encrypted Filename - The file name you want to use to save the encrypted file.

  • Input Path - The path to the file that you want to encrypt. This field supports only strings and String variables.

  • Key - The key that you want to use to encrypt the specified file. This field supports only strings and String variables.

  • Key Encoding - The encoding used to interpret the key specified in the Key property. This field supports only Encoding variables.

  • Key Secure String - The secure string used to encrypt the input file.

  • Output file name and location - The path where you want to save the encrypted file. This field supports only strings and String variables.

  • Overwrite - If a file already exists at the path specified in the OutputPath field, selecting this check box overwrites it. If unchecked, a new file is created. By default, this check box is cleared.

Sonstiges

  • Privat (Private) - Bei Auswahl werden die Werte von Variablen und Argumenten nicht mehr auf der Stufe Verbose protokolliert.

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben