{"action":"closed","issue":{"url":"https://api.github.com/repos/elgerlambert/redux-localstorage/issues/17","labels_url":"https://api.github.com/repos/elgerlambert/redux-localstorage/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/elgerlambert/redux-localstorage/issues/17/comments","events_url":"https://api.github.com/repos/elgerlambert/redux-localstorage/issues/17/events","html_url":"https://github.com/elgerlambert/redux-localstorage/issues/17","id":108364990,"number":17,"title":"Added EncodedLocalStorage","user":{"login":"slybridges","id":5409148,"avatar_url":"https://avatars.githubusercontent.com/u/5409148?v=3","gravatar_id":"","url":"https://api.github.com/users/slybridges","html_url":"https://github.com/slybridges","followers_url":"https://api.github.com/users/slybridges/followers","following_url":"https://api.github.com/users/slybridges/following{/other_user}","gists_url":"https://api.github.com/users/slybridges/gists{/gist_id}","starred_url":"https://api.github.com/users/slybridges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slybridges/subscriptions","organizations_url":"https://api.github.com/users/slybridges/orgs","repos_url":"https://api.github.com/users/slybridges/repos","events_url":"https://api.github.com/users/slybridges/events{/privacy}","received_events_url":"https://api.github.com/users/slybridges/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-25T16:56:54Z","updated_at":"2015-09-29T12:54:34Z","closed_at":"2015-09-29T12:54:34Z","body":"Thanks for the lib, it works great !\r\n\r\nI have the case where I didn't want part of my state to be stored in plain text on localStorage.\r\n\r\nSo I created an `EncodedLocalStorage` that takes an encoder and decoder functions on top of the storage and stores the state as an encoded string and decodes it on the fly when reading it.\r\n\r\nBy default, if you don't specify any encoder/decoder function it will use basic base64 encoding.\r\n\r\nIf made PR #16 for that matter. Feel free to merge if you think that could be of interest of some (alternatively, we could also update the current localStorage to accept an encoder and decoder as optional and just store plain text if none are passed).\r\n"}}