IConfiguration.

Password(string) Method

Summary

protects the database file with a password.

Syntax

[System.ObsoleteAttribute(@"use a custom encrypting IoAdapter instead")]
void Password(string pass)

Remarks

protects the database file with a password.

To set a password for a database file, this method needs to be called before a database file is created with the first Db4objects.Db4o.Db4oFactory.OpenFile(System.String) .

All further attempts to open the file, are required to set the same password.

The password is used to seed the encryption mechanism, which makes it impossible to read the database file without knowing the password.

Attributes

Type Description
ObsoleteAttribute

Parameters

Name Type Description
pass string the password to be used.

Return Value

Type Description
void