{"action":"created","issue":{"url":"https://api.github.com/repos/h4ck-rOOt/Lynda-Decryptor/issues/12","repository_url":"https://api.github.com/repos/h4ck-rOOt/Lynda-Decryptor","labels_url":"https://api.github.com/repos/h4ck-rOOt/Lynda-Decryptor/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/h4ck-rOOt/Lynda-Decryptor/issues/12/comments","events_url":"https://api.github.com/repos/h4ck-rOOt/Lynda-Decryptor/issues/12/events","html_url":"https://github.com/h4ck-rOOt/Lynda-Decryptor/issues/12","id":189934815,"number":12,"title":"Lynda now have ldcw files. Seems like this tool could not decrypt them. Could you be","user":{"login":"anujsethi12","id":10247139,"avatar_url":"https://avatars0.githubusercontent.com/u/10247139?v=4","gravatar_id":"","url":"https://api.github.com/users/anujsethi12","html_url":"https://github.com/anujsethi12","followers_url":"https://api.github.com/users/anujsethi12/followers","following_url":"https://api.github.com/users/anujsethi12/following{/other_user}","gists_url":"https://api.github.com/users/anujsethi12/gists{/gist_id}","starred_url":"https://api.github.com/users/anujsethi12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anujsethi12/subscriptions","organizations_url":"https://api.github.com/users/anujsethi12/orgs","repos_url":"https://api.github.com/users/anujsethi12/repos","events_url":"https://api.github.com/users/anujsethi12/events{/privacy}","received_events_url":"https://api.github.com/users/anujsethi12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-17T04:32:36Z","updated_at":"2017-09-19T12:21:01Z","closed_at":null,"author_association":"NONE","body":"Hi @h4ck-rOOt Lynda offline files now have .ldcw file extension. Seems like this tool could not decrypt them.\r\nI did try to change .ldcw file extension to .lynda extension so that this tool can read the files but the output file produced is either corrupted or some times the tool throws the error \"Length of the data to decrypt is invalid.\" at line 354 - decryptionStream.Read(buffer, 0, buffer.Length);\r\n\r\nCould you please try to see if there is a way to decrypt ldcw files as well.\r\n\r\nThank you very much  for the awesome work  :+1: "},"comment":{"url":"https://api.github.com/repos/h4ck-rOOt/Lynda-Decryptor/issues/comments/330521448","html_url":"https://github.com/h4ck-rOOt/Lynda-Decryptor/issues/12#issuecomment-330521448","issue_url":"https://api.github.com/repos/h4ck-rOOt/Lynda-Decryptor/issues/12","id":330521448,"user":{"login":"BravoSlo","id":11989986,"avatar_url":"https://avatars0.githubusercontent.com/u/11989986?v=4","gravatar_id":"","url":"https://api.github.com/users/BravoSlo","html_url":"https://github.com/BravoSlo","followers_url":"https://api.github.com/users/BravoSlo/followers","following_url":"https://api.github.com/users/BravoSlo/following{/other_user}","gists_url":"https://api.github.com/users/BravoSlo/gists{/gist_id}","starred_url":"https://api.github.com/users/BravoSlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BravoSlo/subscriptions","organizations_url":"https://api.github.com/users/BravoSlo/orgs","repos_url":"https://api.github.com/users/BravoSlo/repos","events_url":"https://api.github.com/users/BravoSlo/events{/privacy}","received_events_url":"https://api.github.com/users/BravoSlo/received_events","type":"User","site_admin":false},"created_at":"2017-09-19T12:21:01Z","updated_at":"2017-09-19T12:21:01Z","author_association":"NONE","body":"After playing around with ldcw files, i found that on windows with the store app, only the file headers (63 bytes) are bitwise complement-ed. When you reverse these 63 bytes the files play normaly in vlc.\r\n\r\n\t\tprivate async Task ModifyFileHeader(StorageFile file)\r\n\t\t{\r\n\t\t\tusing (Stream stream = WindowsRuntimeStreamExtensions.AsStream(await file.OpenAsync(1), 63))\r\n\t\t\t{\r\n\t\t\t\tbyte[] array = new byte[63];\r\n\t\t\t\tint num = await stream.ReadAsync(array, 0, 63);\r\n\t\t\t\tbyte[] array2 = new byte[63];\r\n\t\t\t\tfor (int i = 0; i < num; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tarray2[i] = ~array[i];\r\n\t\t\t\t}\r\n\t\t\t\tstream.Seek(0L, SeekOrigin.Begin);\r\n\t\t\t\tawait stream.WriteAsync(array2, 0, array2.Length);\r\n\t\t\t}\r\n\t\t}"}}
{"actor":{"display_login":"BravoSlo"}}