{"action":"created","issue":{"url":"https://api.github.com/repos/delatbabel/elocryptfive/issues/15","repository_url":"https://api.github.com/repos/delatbabel/elocryptfive","labels_url":"https://api.github.com/repos/delatbabel/elocryptfive/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/delatbabel/elocryptfive/issues/15/comments","events_url":"https://api.github.com/repos/delatbabel/elocryptfive/issues/15/events","html_url":"https://github.com/delatbabel/elocryptfive/issues/15","id":168365785,"number":15,"title":"Concern about losing key","user":{"login":"CHOMNANP","id":5925050,"avatar_url":"https://avatars.githubusercontent.com/u/5925050?v=3","gravatar_id":"","url":"https://api.github.com/users/CHOMNANP","html_url":"https://github.com/CHOMNANP","followers_url":"https://api.github.com/users/CHOMNANP/followers","following_url":"https://api.github.com/users/CHOMNANP/following{/other_user}","gists_url":"https://api.github.com/users/CHOMNANP/gists{/gist_id}","starred_url":"https://api.github.com/users/CHOMNANP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CHOMNANP/subscriptions","organizations_url":"https://api.github.com/users/CHOMNANP/orgs","repos_url":"https://api.github.com/users/CHOMNANP/repos","events_url":"https://api.github.com/users/CHOMNANP/events{/privacy}","received_events_url":"https://api.github.com/users/CHOMNANP/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-29T16:41:14Z","updated_at":"2016-07-30T12:13:14Z","closed_at":"2016-07-30T12:13:14Z","body":"Love the way the encryption work. Thank for sharing.\r\n\r\nI got a concern. What if I change the server. Then I would regenerate the key \"php artisan key:generate\" for my new server. How could I recover the encrypted data in the existing database?\r\n\r\nIs there any manual way to decrypt the data if I did have my \"Key\" and \"value\"?\r\n\r\nThanks. "},"comment":{"url":"https://api.github.com/repos/delatbabel/elocryptfive/issues/comments/236362067","html_url":"https://github.com/delatbabel/elocryptfive/issues/15#issuecomment-236362067","issue_url":"https://api.github.com/repos/delatbabel/elocryptfive/issues/15","id":236362067,"user":{"login":"delatbabel","id":2335362,"avatar_url":"https://avatars.githubusercontent.com/u/2335362?v=3","gravatar_id":"","url":"https://api.github.com/users/delatbabel","html_url":"https://github.com/delatbabel","followers_url":"https://api.github.com/users/delatbabel/followers","following_url":"https://api.github.com/users/delatbabel/following{/other_user}","gists_url":"https://api.github.com/users/delatbabel/gists{/gist_id}","starred_url":"https://api.github.com/users/delatbabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delatbabel/subscriptions","organizations_url":"https://api.github.com/users/delatbabel/orgs","repos_url":"https://api.github.com/users/delatbabel/repos","events_url":"https://api.github.com/users/delatbabel/events{/privacy}","received_events_url":"https://api.github.com/users/delatbabel/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T12:13:14Z","updated_at":"2016-07-30T12:13:14Z","body":"> What if I change the server.\r\n\r\nThen you should keep the key from your existing server.  If you have lost the key then you can't decrypt the data.  That's what encryption is all about -- preventing someone from decrypting the data if they don't have the key.\r\n\r\n> Is there any manual way to decrypt the data if I did have my \"Key\" and \"value\"?\r\n\r\nYes, check in the code, look at the decryptedAttribute() method."}}
{"actor":{"display_login":"delatbabel"}}