Skip to content

Instantly share code, notes, and snippets.

@SaltwaterC
Last active April 12, 2017 09:01
Show Gist options
  • Save SaltwaterC/90aa63b18e8c44049eb1fc8b16f2263b to your computer and use it in GitHub Desktop.
Save SaltwaterC/90aa63b18e8c44049eb1fc8b16f2263b to your computer and use it in GitHub Desktop.
KDBX 3.1 case sensitiveness
require 'pp'
require 'rubeepass'
kdbx = RubeePass.new('keepass.kdbx', 'asdf').open
entry = kdbx.find_group('keepass').entries['asdf']
puts 'Entry#attributes'
pp entry.attributes
puts 'Entry#additional_attributes'
pp entry.additional_attributes
puts 'Entry#attachments'
pp entry.attachments
puts "Entry#has_attachment?('uppercase')"
pp entry.has_attribute?('uppercase')
puts "Entry#attribute('uppercase')"
pp entry.attribute('uppercase')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment