IConfiguration.

Encrypt(bool) Method

Summary

configures the use of encryption.

Syntax

[System.ObsoleteAttribute(@"use a custom encrypting IoAdapter instead")]
void Encrypt(bool flag)

Remarks

configures the use of encryption.

This method needs to be called before a database file is created with the first Db4objects.Db4o.Db4oFactory.OpenFile(System.String) .

If encryption is set to true, you need to supply a password to seed the encryption mechanism.

db4o database files keep their encryption format after creation.

Attributes

Type Description
ObsoleteAttribute

Parameters

Name Type Description
flag bool true for turning encryption on, false for turning encryption off.

Return Value

Type Description
void

See Also

  • Db4objects.Db4o.Config.IConfiguration.Password(System.String)