class Snowden::Configuration
The object that holds all the configuration details for Snowden
@attr edit_distance
[Integer] the size of the edit distance sets that
are created when searching and storing strings. See an example at: https://gist.github.com/samphippen/6621771. Defaults to 3.
@attr cipher_spec
[String] an OpenSSL cipher spec to use with Snowden
.
Defaults to "AES-256-CBC".
@attr padding_byte_size
[Integer] the amount of random padding to add to
values stored in the index. Defaults to 32. Change at your own risk. Never set to lower than 2 blocks if you're using a block cipher.
Attributes
backend[RW]
cipher_spec[RW]
edit_distance[RW]
padding_byte_size[RW]
Public Class Methods
new()
click to toggle source
Sets up the configuration object
# File lib/snowden/configuration.rb, line 22 def initialize @edit_distance = 3 @cipher_spec = "AES-256-CBC" @padding_byte_size = 32 end