Class SevenZipAESEncryptionSettings
nazivni prostor: Aspose.Zip.Saving Sastav: Aspose.Zip.dll (25.5.0)
Osnovna klasa za postavke za nekoliko 7z metoda šifriranja.
public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings
Inheritance
object ← SevenZipEncryptionSettings ← SevenZipAESEncryptionSettings
naslijeđeni članovi
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 je jedini mogući način šifriranja za 7z arhiv. Dakle, Aspose.Zip.Saving.SevenZipAESEncryptionSettings je jedina implementacija.
Constructors
Sljedeći Članak 7ZipAESEncryptionSettings(String)
Inicijalizira novu primjenu klase Aspose.Zip.Saving.SevenZipAESEncryptionSettings.
public SevenZipAESEncryptionSettings(string password)
Parameters
password
string
Lozinka za šifriranje ili decryption.
Examples
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.7z");
}
Sljedeći Članak 7ZipAESEncryptionSettings(SevenZipCipher)
Inicijalizira novu primjenu Aspose.Zip.Saving.SevenZipAESEncryptionSettings klase s vanjskim ciperom.
public SevenZipAESEncryptionSettings(SevenZipCipher cipher)
Parameters
cipher
SevenZipCipher
Prilagođena implementacija AES-a
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");
}