AesEcryptionSettings.AesEcryptionSettings

AesEcryptionSettings(string, EncryptionMethod)

의 새 인스턴스를 초기화합니다.AesEcryptionSettings 클래스.

public AesEcryptionSettings(string password, EncryptionMethod method)
모수유형설명
passwordString암호화 또는 암호 해독을 위한 암호입니다.
methodEncryptionMethod암호의 블록 크기를 나타내는 알고리즘 옵션입니다.

예외

예외상태
NotSupportedExceptionmethod 다음 중 하나가 아닙니다.AES128 ,AES192 , 또는AES256.

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

또한보십시오


AesEcryptionSettings(EncryptionMethod)

의 새 인스턴스를 초기화합니다.AesEcryptionSettings비밀번호가 없는 클래스.

public AesEcryptionSettings(EncryptionMethod method)
모수유형설명
methodEncryptionMethod암호의 블록 크기를 나타내는 알고리즘 옵션입니다.

또한보십시오