class Serket::Configuration
Controls various configuration options such as key locations, desired algorithms and expected cipher text format.
-
private_key_path
- The filepath to a RSA private key -
public_key_path
- The filepath to a RSA public key -
delimiter
- If the format is set to :delimited, use this delimiter.Must not be a character in base64.
-
format
- May be :delimited or :json -
symmetric_algorithm
- May be any algorithm that may be used with OpenSSL::Cipher -
encoding
- Any valid ruby encoding
Attributes
delimiter[RW]
encoding[RW]
format[RW]
private_key_path[RW]
public_key_path[RW]
symmetric_algorithm[RW]
Public Class Methods
new()
click to toggle source
# File lib/serket/configuration.rb, line 16 def initialize @delimiter = "::" @format = :delimited @symmetric_algorithm = 'AES-256-CBC' @encoding = 'utf-8' end