DefaultFilePassword Property

The default encryption password to use when creating or opening files and alternate streams.


ANSI (Cross Platform)
char* GetDefaultFilePassword();
int SetDefaultFilePassword(const char* lpszDefaultFilePassword); Unicode (Windows) LPWSTR GetDefaultFilePassword();
INT SetDefaultFilePassword(LPCWSTR lpszDefaultFilePassword);
@property (nonatomic,readwrite,assign,getter=defaultFilePassword,setter=setDefaultFilePassword:) NSString* defaultFilePassword;
- (NSString*)defaultFilePassword;
- (void)setDefaultFilePassword:(NSString*)newDefaultFilePassword;

CBFSVAULT_EXTERNAL void* CBFSVAULT_CALL CBFSVault_CBVault_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
CBFSVAULT_EXTERNAL int CBFSVAULT_CALL CBFSVault_CBVault_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value



This property specifies the default encryption password that the class should use when creating or opening files and alternate streams.

Please refer to the Encryption topic for more information.

As an alternative to using this property, applications can call the CacheFilePassword method (before a file is opened) to specify a one-time-use password, or specify file encryption passwords dynamically using the FilePasswordNeeded event.

Data Type


Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Vault 2020 C++ Edition - Version 20.0 [Build 8347]