module Serket

Constants

VERSION

Attributes

configuration[W]

Public Class Methods

configuration() click to toggle source
# File lib/serket.rb, line 13
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/serket.rb, line 17
def self.configure
  yield(configuration)
end
decrypt(cipher) click to toggle source
# File lib/serket.rb, line 25
def self.decrypt(cipher)
  field_decrypter.decrypt(cipher)
end
encrypt(text) click to toggle source
# File lib/serket.rb, line 21
def self.encrypt(text)
  field_encrypter.encrypt(text)
end
field_decrypter() click to toggle source
# File lib/serket.rb, line 33
def self.field_decrypter
  @field_decrypter ||= FieldDecrypter.new
end
field_encrypter() click to toggle source
# File lib/serket.rb, line 29
def self.field_encrypter
  @field_encrypter ||= FieldEncrypter.new
end