AesEcryptionSettings.AesEcryptionSettings
AesEcryptionSettings(string, EncryptionMethod)
의 새 인스턴스를 초기화합니다.AesEcryptionSettings
클래스.
public AesEcryptionSettings(string password, EncryptionMethod method)
모수 | 유형 | 설명 |
---|
password | String | 암호화 또는 암호 해독을 위한 암호입니다. |
method | EncryptionMethod | 암호의 블록 크기를 나타내는 알고리즘 옵션입니다. |
예외
예외 | 상태 |
---|
NotSupportedException | method 다음 중 하나가 아닙니다.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)
모수 | 유형 | 설명 |
---|
method | EncryptionMethod | 암호의 블록 크기를 나타내는 알고리즘 옵션입니다. |
또한보십시오