Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Convert CipherString to a string before passing to AR (#69)
Browse files Browse the repository at this point in the history
Without this our data ends up as a raw object in the db.
Only tested on my end with keepass

Should fix #64 and #59
  • Loading branch information
qbit authored and jcs committed Sep 7, 2018
1 parent 20280ce commit e539b67
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/1password_import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def usage
Bitwarden::KDF::TYPES[@u.kdf_type], @u.kdf_iterations)

def encrypt(str)
@u.encrypt_data_with_master_password_key(str, @master_key)
@u.encrypt_data_with_master_password_key(str, @master_key).to_s
end

to_save = {}
Expand Down
2 changes: 1 addition & 1 deletion tools/bitwarden_import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def usage
end

def encrypt(str)
@u.encrypt_data_with_master_password_key(str, @master_key)
@u.encrypt_data_with_master_password_key(str, @master_key).to_s
end

def get_or_create_folder_uuid(str)
Expand Down
2 changes: 1 addition & 1 deletion tools/keepass_import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def usage
end

def encrypt(str)
@u.encrypt_data_with_master_password_key(str, @master_key)
@u.encrypt_data_with_master_password_key(str, @master_key).to_s
end

def get_or_create_folder_uuid(str)
Expand Down
2 changes: 1 addition & 1 deletion tools/lastpass_import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def usage
end

def encrypt(str)
@u.encrypt_data_with_master_password_key(str, @master_key)
@u.encrypt_data_with_master_password_key(str, @master_key).to_s
end

def get_or_create_folder_uuid(str)
Expand Down

0 comments on commit e539b67

Please sign in to comment.