Class AesEcryptionSettings
Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.1.0)
여러 zip 암호화 방법에 대한 설정의 기본 클래스입니다.
public class AesEcryptionSettings : EncryptionSettings
상속
object ← EncryptionSettings ← AesEcryptionSettings
상속된 멤버
EncryptionSettings.Method, EncryptionSettings.Password, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
비고
자세한 내용은 https://www.winzip.com/win/en/aes_info.html 을 참조하십시오.
생성자
AesEcryptionSettings(string, EncryptionMethod)
Aspose.Zip.Saving.AesEcryptionSettings 클래스의 새 인스턴스를 초기화합니다.
public AesEcryptionSettings(string password, EncryptionMethod method)
매개변수
password
string
암호화 또는 복호화를 위한 비밀번호입니다.
method
EncryptionMethod
암호의 블록 크기를 나타내는 알고리즘 옵션입니다.
예제
using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save("archive.zip");
}
예외
method
는 Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192 또는 Aspose.Zip.Saving.EncryptionMethod.AES256 중 하나가 아닙니다.
AesEcryptionSettings(EncryptionMethod)
비밀번호 없이 Aspose.Zip.Saving.AesEcryptionSettings 클래스의 새 인스턴스를 초기화합니다.
public AesEcryptionSettings(EncryptionMethod method)
매개변수
method
EncryptionMethod
암호의 블록 크기를 나타내는 알고리즘 옵션입니다.