Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

Το όνομα: Aspose.Zip.Saving Συγκέντρωση: Aspose.Zip.dll (25.5.0)

Κλάση βάσης για τις ρυθμίσεις για διάφορες μεθόδους κρυπτογράφησης 7z.

public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings

Inheritance

object SevenZipEncryptionSettings SevenZipAESEncryptionSettings

Κληρονομημένα μέλη

SevenZipEncryptionSettings.Password , SevenZipEncryptionSettings.EncryptHeader , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

Το AES-256 είναι η μόνη δυνατή μέθοδος κρυπτογράφησης για το αρχείο 7z. Έτσι το Aspose.Zip.Saving.SevenZipAESEncryptionSettings είναι η μόνη εφαρμογή.

Constructors

7 Ετικέτες κρυπτογράφηση(Σύνδεσμος)

Αρχίζει μια νέα περίπτωση της κατηγορίας Aspose.Zip.Saving.SevenZipAESEncryptionSettings.

public SevenZipAESEncryptionSettings(string password)

Parameters

password string

Ο κωδικός πρόσβασης για κρυπτογράφηση ή αποκρυπτογράφηση.

Examples

using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.7z");
}

7 Ετικέτες κρυπτογράφηση(SevenZipCipher)

Ξεκινά μια νέα παράσταση της κατηγορίας Aspose.Zip.Saving.SevenZipAESEncryptionSettings με εξωτερική κλίμακα.

public SevenZipAESEncryptionSettings(SevenZipCipher cipher)

Parameters

cipher SevenZipCipher

Προσαρμοσμένη εφαρμογή AES.

Examples

SevenZipCipher cipher = ComposeMyCipher();
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings(cipher))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.7z");
}
 Ελληνικά