Class AesEcryptionSettings

Class AesEcryptionSettings

이름 공간 : Aspose.Zip.Saving 모임: Aspose.Zip.dll (25.5.0)

여러 zip 암호화 방법에 대한 설정에 대한 기본 클래스.

public class AesEcryptionSettings : EncryptionSettings

Inheritance

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()

Remarks

더 보기 https://www.winzip.com/win/en/aes_info.html

Constructors

AesEcryptionSettings(암호화, 암호화 방법)

Aspose.Zip.Saving.AesEcryptionSettings 클래스의 새로운 예를 시작합니다.

public AesEcryptionSettings(string password, EncryptionMethod method)

Parameters

password string

암호화 또는 해독을 위한 암호화.

method EncryptionMethod

블록 크기를 나타내는 알고리즘 옵션.

Examples

using (var archive = new Archive(new ArchiveEntrySettings(null, new AesEcryptionSettings("p@s$", EncryptionMethod.AES256))))
{
   archive.CreateEntry("data.bin", "data.bin");
   archive.Save("archive.zip");
}

Exceptions

NotSupportedException

method’ is not one of Aspose.Zip.Saving.EncryptionMethod.AES128, Aspose.Zip.Saving.EncryptionMethod.AES192, or Aspose.Zip.Saving.EncryptionMethod.AES256.

AesEcryptionSettings(EncryptionMethod)

암호없이 Aspose.Zip.Saving.AesEcryptionSettings 클래스의 새로운 예를 시작합니다.

public AesEcryptionSettings(EncryptionMethod method)

Parameters

method EncryptionMethod

블록 크기를 나타내는 알고리즘 옵션.

 한국어