Sha256: 18bf527df56d4e1397a87991ce96bd11e8fa8e79eda96b38e698f9896dd0bf44
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
# frozen_string_literal: true require 'base64' require 'stringio' require 'openssl' require 'securerandom' require 'digest/sha2' require 'yaml' require 'zeitwerk' loader = Zeitwerk::Loader.for_gem loader.inflector.inflect 'aes_crypt' => 'AESCrypt' loader.setup module Keepassx class << self # Create Keepassx database # # @param opts [Hash] Keepassx database options. # @yield [opts] # @yieldreturn [Fixnum] # @return [Keepassx::Database] def new(opts) db = Database.new(opts) yield db if block_given? db end # Read Keepassx database from file storage. # # @param opts [Hash] Keepassx database options. # @yield [opts] # @yieldreturn [Fixnum] # @return [Keepassx::Database] def open(opts) db = Database.new(opts) yield db if block_given? db end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
keepassx-1.1.0 | lib/keepassx.rb |