{"id":659,"date":"2015-09-22T12:02:24","date_gmt":"2015-09-22T16:02:24","guid":{"rendered":"https:\/\/www.devolve.net\/blog\/?p=659"},"modified":"2018-07-13T11:36:29","modified_gmt":"2018-07-13T15:36:29","slug":"keepass-to-pwsafe","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/keepass-to-pwsafe\/","title":{"rendered":"Convert Keepass export to Password Gorilla import"},"content":{"rendered":"

I recently skimmed a paper<\/a> showing the success of attacking the security of various password database file formats. The only one which withstood both the passive and active attacks was the Password Safe<\/a> format.<\/p>\n

I wondered how hard it would be to migrate my KeePass data into a Password Safe DB. The Googs showed lots of results for moving from Password Safe to KeePass but not the other way around. Here’s what I finally used to import into Password Gorilla (warning: Password Gorilla by default on my Mac created a v1 database file, which was unreadable by other password safe-compatible apps). When I created an empty v2 file and then opened it with Password Gorilla, I was then able to ask it to import the CSV successfully.<\/p>\n

cat keepass.csv | perl -pe 's#\\n#\\\\n#gm' | \\\r\nperl -pe 's#\\\\n($|Root\/)#\\n#g' | \\\r\nperl -pe 's#Group,Title,Username,Password,URL,Notes#group,title,user,password,url,notes#' \\\r\n > import.csv<\/pre>\n

Don’t forget to shred<\/code> your intermediate csv or other files when done.<\/p>\n","protected":false},"excerpt":{"rendered":"

I recently skimmed a paper showing the success of attacking the security of various password database file formats. The only one which withstood both the passive and active attacks was the Password Safe format.<\/p>\n","protected":false},"author":3,"featured_media":728,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[38,34,41,16,15,24],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/659"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":6,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"predecessor-version":[{"id":729,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/659\/revisions\/729"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media\/728"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}