{"action":"created","issue":{"url":"https://api.github.com/repos/yathit/ydn-db/issues/59","labels_url":"https://api.github.com/repos/yathit/ydn-db/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/yathit/ydn-db/issues/59/comments","events_url":"https://api.github.com/repos/yathit/ydn-db/issues/59/events","html_url":"https://github.com/yathit/ydn-db/issues/59","id":77051538,"number":59,"title":"Retrieve all values from encrypted ydn.db without ID","user":{"login":"yogeshmahajan","id":12473192,"avatar_url":"https://avatars.githubusercontent.com/u/12473192?v=3","gravatar_id":"","url":"https://api.github.com/users/yogeshmahajan","html_url":"https://github.com/yogeshmahajan","followers_url":"https://api.github.com/users/yogeshmahajan/followers","following_url":"https://api.github.com/users/yogeshmahajan/following{/other_user}","gists_url":"https://api.github.com/users/yogeshmahajan/gists{/gist_id}","starred_url":"https://api.github.com/users/yogeshmahajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogeshmahajan/subscriptions","organizations_url":"https://api.github.com/users/yogeshmahajan/orgs","repos_url":"https://api.github.com/users/yogeshmahajan/repos","events_url":"https://api.github.com/users/yogeshmahajan/events{/privacy}","received_events_url":"https://api.github.com/users/yogeshmahajan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yathit/ydn-db/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-05-16T14:34:27Z","updated_at":"2015-06-25T15:44:36Z","closed_at":"2015-05-27T03:32:41Z","body":"Hi,\r\nI am using encrypted ydn.db in my application which contains multiple table with number of records. It is working properly with single key in my application, but I can retrieve decrypted values only when, I knew the ID. My problem is that there is number of dynamic ID against which data get stored and currently there no provision to handle these ID.  So, there is any way to access all decrypted values from encrypted db without caring ID. Or there is any provision to create relation between encrypted db and non-encrypted ID.     \r\nI am trying something like that,  \r\n\r\ndb.put('mytable', { Data: ‘Some Data Here’},'ID').then(function (key) { console.log(key); }, function (e) { console.log(e.stack); });\r\n\r\nstoring my data properly in encrypted format, \r\n\r\ndb.values('mytable').then(function (key) { console.log(key); }, function (e) { console.error(e.stack); })\r\n\r\ndisplaying all data in encrypted format and  \r\n\r\ndb.get('mytable','ID').then(function (key) { console.log(key); }, function (e) { console.error(e.stack); })\r\n\r\nfor above solution, where ID is dynamically generated; there any easy solution to maintain these ID to retrieve db values.\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/yathit/ydn-db/issues/comments/115299277","html_url":"https://github.com/yathit/ydn-db/issues/59#issuecomment-115299277","issue_url":"https://api.github.com/repos/yathit/ydn-db/issues/59","id":115299277,"user":{"login":"yogeshmahajan","id":12473192,"avatar_url":"https://avatars.githubusercontent.com/u/12473192?v=3","gravatar_id":"","url":"https://api.github.com/users/yogeshmahajan","html_url":"https://github.com/yogeshmahajan","followers_url":"https://api.github.com/users/yogeshmahajan/followers","following_url":"https://api.github.com/users/yogeshmahajan/following{/other_user}","gists_url":"https://api.github.com/users/yogeshmahajan/gists{/gist_id}","starred_url":"https://api.github.com/users/yogeshmahajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogeshmahajan/subscriptions","organizations_url":"https://api.github.com/users/yogeshmahajan/orgs","repos_url":"https://api.github.com/users/yogeshmahajan/repos","events_url":"https://api.github.com/users/yogeshmahajan/events{/privacy}","received_events_url":"https://api.github.com/users/yogeshmahajan/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T15:44:36Z","updated_at":"2015-06-25T15:44:36Z","body":"Hi,\r\n\r\nwe checked your link, but you did data decryption using db.get() method using a loop.\r\n\r\nbut it is not so useful for us. we need bulk data which we can easily retrieve from db.values() method.\r\n\r\nPlease, If it is possible, try to retrieve bulk data using db.values() or any other but without using loop such as your example \r\n-----------------------------------------------------------------------------\r\ndb.values('store').done(function(packages) {\r\n  return packages.map(function(obj) {\r\n    return cipher.decrypt(obj);\r\n  });\r\n});\r\n\r\n-------------------------------------------------------------------------------\r\n![ydn db-example](https://cloud.githubusercontent.com/assets/12473192/8358602/bca2a0e8-1b7e-11e5-8c38-8df2ac05a699.png)\r\n \r\n\r\nthank and regards,\r\n\r\nYogesh\r\n\r\n"}}