password (property)

An optional password for the self-extracting archive.

Syntax

@property (nonatomic,readwrite,assign,getter=password,setter=setPassword:) NSString* password;
- (NSString*)password;
- (void)setPassword:(NSString*)newPassword;
public var password: String {
  get {...}
set {...} }

Default Value

""

Remarks

This property specifies a case-sensitive password used to encrypt or decrypt the archive. If set to an empty string (default), no encryption is used.

The maximum supported length of the password is 128 characters.

Example (compressing an SFX archive):


class.ArchiveFile = "c:\test.exe"
class.RecurseSubdirectories = true
class.SourceDirectory = "c:\foo"
class.Password = "nsoftware"
class.CreateSFX()

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 iOS Edition - Version 20.0 [Build 8300]