{"id":1148,"date":"2019-03-24T14:39:27","date_gmt":"2019-03-24T19:39:27","guid":{"rendered":"http:\/\/xfloyd.net\/blog\/?p=1148"},"modified":"2019-03-24T14:42:35","modified_gmt":"2019-03-24T19:42:35","slug":"how-to-retrieve-a-saved-ftp-password-from-phpstorm","status":"publish","type":"post","link":"https:\/\/xfloyd.net\/blog\/?p=1148","title":{"rendered":"How to retrieve a saved ftp password from phpStorm?"},"content":{"rendered":"\n<p>This method can only be used in the version of 2016.1 or before. For \nnewer version (probably 2016.2), they changed the encode method. There \nis no clue for me to decode it.<\/p>\n\n\n\n<p>Open C:\\Users\\.WebIde100\\config\\options\\webServers.xml\nFind your FTP and get the encrypted password from the password attribute.\nDecrypt the password. I have written a PHP script to decrypt the string:\n\n<\/p>\n\n\n<pre><code ><br \/>\n$pwd = \"Your encrypted password here.\";<br \/>\n$decrypted = '';<\/p>\n<p>while (strlen($pwd) &gt; 0) {<br \/>\n$decrypted .= chr(hexdec(substr($pwd, 0, 4)) ^ hexdec('dfaa'));<br \/>\n$pwd = substr($pwd, 4, strlen($pwd) - 1);<br \/>\n}<br \/>\necho $decrypted;<br \/>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This method can only be used in the version of 2016.1 or before. For newer version (probably 2016.2), they changed the encode method. There is no clue for me to decode it. Open C:\\Users\\.WebIde100\\config\\options\\webServers.xml Find your FTP and get the encrypted password from the password attribute. Decrypt the password. I have written a PHP script [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1148"}],"collection":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1148"}],"version-history":[{"count":5,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1148\/revisions"}],"predecessor-version":[{"id":1153,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1148\/revisions\/1153"}],"wp:attachment":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}