PasswordDictionary

PasswordDictionary class

Represents a dictionary of document passwords.

public class PasswordDictionary : DictionaryBase, IEnumerable<string>

Properties

Name Description
Count { get; } Gets the number of elements contained in the dictionary.
override DictionaryType { get; } Gets the dictionary type.

Methods

Name Description
Add(string, string) Adds a password for a document to the dictionary.
override Clear() Removes all passwords from this PasswordDictionary object.
Contains(string) Determines whether the dictionary contains a password for the specified document.
ExportDictionary(string) Exports the dictionary to a file with the specified name.
GetEnumerator() Returns an enumerator that iterates through the collection.
GetPassword(string) Gets the password for the file.
ImportDictionary(string) Imports a dictionary from the specified file.
Remove(string) Removes a password of the specified document from the dictionary.

Remarks

The passwords are not protected in the index, in an exported dictionary or in the messages of a search network: anyone who can read the folder of the index, the exported file or the traffic of the network can read them. Keep the folder of an index that has passwords, and the exported files, where only trusted users can read them.

Learn more

See Also