Class SevenZipAESEncryptionSettings

Class SevenZipAESEncryptionSettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)

여러 7z 암호화 방법을 위한 설정의 기본 클래스입니다.

public class SevenZipAESEncryptionSettings : SevenZipEncryptionSettings

상속

objectSevenZipEncryptionSettingsSevenZipAESEncryptionSettings

상속된 멤버

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

비고

AES-256은 7z 아카이브에 대한 유일한 암호화 방법입니다. 따라서 Aspose.Zip.Saving.SevenZipAESEncryptionSettings는 유일한 구현입니다.

생성자

SevenZipAESEncryptionSettings(string)

Aspose.Zip.Saving.SevenZipAESEncryptionSettings 클래스의 새 인스턴스를 초기화합니다.

public SevenZipAESEncryptionSettings(string password)

매개변수

password string

암호화 또는 복호화를 위한 비밀번호입니다.

예제

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

SevenZipAESEncryptionSettings(SevenZipCipher)

외부 암호로 Aspose.Zip.Saving.SevenZipAESEncryptionSettings 클래스의 새 인스턴스를 초기화합니다.

public SevenZipAESEncryptionSettings(SevenZipCipher cipher)

매개변수

cipher SevenZipCipher

사용자 정의 AES 구현입니다.

예제

SevenZipCipher cipher = ComposeMyCipher();
using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings(cipher))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.7z");
}
 한국어