passman-core-0.3.1: Deterministic password generator

CopyrightMatthew Harm Bekkema 2016
LicenseGPL-2
Maintainermbekkema97@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Passman.Core.Config

Contents

Description

 

Synopsis

Data Structures

data Config Source

The persistent configuration of the password manager

Constructors

Config 

Fields

masterPasswordHash :: String

Hash of the master password generated by hashMasterPassword

optionalConfig :: OptionalConfig

The optional portion of the configuration file

data ConfigError Source

Possible config file errors

Constructors

ConfigFileNotFound

There is currently no configuration file.

InvalidConfig FilePath

A configuration file was found but its contents are invalid. The FilePath points to the found configuration file so that the error may be reported to the user

File IO

loadConfig :: IO (Either ConfigError Config) Source

Loads a config from file.

saveConfig :: Config -> IO () Source

Saves the specified config to file, overwriting an existing config file.