package cryptodbm

  1. Overview
  2. Docs
type 'a handler
val get_rootfile : 'a handler -> string
val cast : 'a handler -> Types.read handler
val open_read : file:string -> Types.read handler
val open_full : ?overwrite:bool -> file:string -> perm:int -> Types.full handler
val open_append : file:string -> Types.full handler
val close : 'a handler -> unit
val flush : ?backup:bool -> ?backup_name:string -> Types.full handler -> unit
val get : 'a handler -> Kinds.key_kind -> key:string -> string
val get_encrypted : 'a handler -> Kinds.encoded_key -> Kinds.encoded_data
val add : ?may_overwrite:bool -> Types.full handler -> Kinds.key_kind -> max_extra_data:int -> key:string -> data:string -> unit
val remove : Types.full handler -> Kinds.key_kind -> key:string -> unit
val remove_encrypted : Types.full handler -> Kinds.encoded_key -> unit
val iter_uncrypted : 'a handler -> Cipher.passwd -> (Kinds.location -> string -> unit) -> unit
val iter_subtable : 'a handler -> Cipher.passwd -> subt:int -> subpass:Cipher.passwd -> (Kinds.location -> string -> unit) -> unit
val iter_subtable_encrypted : 'a handler -> Cipher.passwd -> subt:int -> (Kinds.location -> Kinds.encoded_key -> unit) -> unit
val iter_all : 'a handler -> (Kinds.encoded_key -> Kinds.encoded_data -> unit) -> unit
OCaml

Innovation. Community. Security.