def add(entry_or_key, value = nil)
      if value.nil? and entry_or_key.is_a?(Entry) # treat as entry
        entry = entry_or_key
      else
        entry = Entry.new(entry_or_key)
        entry.password = value
      end

      entry.validate!

      @backend.transaction{
        timestamp!(:last_modified)
        @backend[:user][encrypt(entry.name)] = encrypt(EntryMapper.to_json(entry))
      }
    end
def add(entry_or_key, value = nil)
      if value.nil? and entry_or_key.is_a?(Entry) # treat as entry
        entry = entry_or_key
      else
        entry = Entry.new(entry_or_key)
        entry.password = value
      end

      entry.validate!

      @backend.transaction{
        timestamp!(:last_modified)
        @backend[:user][encrypt(entry.name)] = encrypt(EntryMapper.to_json(entry))
      }
    end
Store entry or value under key