Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I would like to implement a file download control for my asp.net c# MVC 4 web application. The requirements are as such
1) Only Logged in user can download the file (pdf etc.)
2) Each User can only download the file once
3) downloaded file should not be able to redistribute to others (this is what puzzled me the most)
For 1) and 2), I think these can be achieved by having records storing access information in database table.
However, I can't think of ways to achieve part 3) unless there is a way to limit the file content to query from server whenever it is opened.
Please share your idea and learn together. Cheers and thanks ~~
As you said 1 and 2 is trivial since you can track it on the server.
Number 3 will be for you probably impossible to solve. Amazon, Apple and other big companies which need to protect copy rights of eBooks or MP3, they offer to download, handle this with Digital Right Management Systems (DRM). However setting up such a system yourself, while possible, will be for sure not worth the effort.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I googled for this and also searched on StackOverflow, but not many helpful links showed up, so here goes:
I have a requirement as follows (and I know this is probably vague, but this is all the information I have right now):
The user will upload a software license file (and the said software can be anything - it is not specific to a particular software product), and the application will have to read the license file and populate a text box with the license key.
Based on this, my questions are as follows:
Is there a standard way to read license files for software products?
Do software license files have specific file extensions, or is it something specific to the vendors?
Is it possible to recognize a file as a license file?
Are there any .NET/C# based parsers which can read license files and extract the key?
There is no standard way.
No.
As a developer you can chose whatever you want to use it as the license file.
It depends on the way the software developer chose to proof a license, but mostly no.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I'm developing an .NET MVC web app and using a google service account to create/delete calendar events on users personal calendars. I'm not sure what would be the best way to secure my google authentication key so that only my program has access to it. Currently it's just in the solution folder for testing purposes.
"Best" is subjective. All I can tell you are options:
Put it in the Web.config as an App Setting, and then encrypt your appSettings configuration section. This is probably the safest route, if not the most convenient.
Put it in your code. It's not uncommon for developers to create a static Settings class that holds various bits of information the application needs. However, this means it will be plain text in the source. That's really only a problem if you plan to open-source your code or otherwise store it some place that's accessible to others (and that includes malicious others that shouldn't actually be able to access it). For example, I'd recommend only putting the source on a TFS or Git server internally, behind a firewall, rather than something on the Internet or public-facing. Once the code is compiled, you obviously won't have it in plain text anymore. However, if someone gains access to the compiled code, they could still decompile it and potentially find the string. To protect against that, you could use any number of obfuscation programs out there.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm looking to sell my program I've been working on via year long subscriptions. How do you suggest I do this? Obviously checking DateTime.Now won't work since a user could change his computer time. I thought about having an encrypted number in my program files that counts down from 360 to 0, but if a user simply re-pasted their program files every so often, the timer would never run down.
What do you guys think I should do? I have access to a website and server, I just don't know much about web development besides basic HTML. Would having the program check with a web service to see if the key has expired be the best way? The only thing is that if a user didn't have internet, that would have problems.
Let me know what you guys think :D
Thanks
Every protection can be cracked some more easily that others. Coincidently, those that harder to crack are also most inconvenient for end users and sometimes too expensive. For example you can sell hardware dongle with your subscription.
What many companies settle for is providing a year of "free" updates. Your program evolves as you add new features but these are not available for those whose subscription time has ended. They will be able to use older versions eternally though.
Usually this is a good enough incentive to purchase. But have no doubt, if you program ever becomes even relatively widespread, it WILL BE cracked. That's the reality.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have to create a user requirements specification for an application. I will need treeviews, menus, gridviews (with data). What is the quickest way to do this with little or no code and no database data. The application would need to react as almost if it was the final product. My initial thoughts is to programatically populate the treeview and gridview from xml files so i can change without any coding.
Does this make sense or what do other people do?
The application would need to react as almost if it was the final
product.
I think your first step is to set more realistic expectations and explain (possibly to the stakeholders?) the difference between a demo and a full product. If you are going to put in all the effort to make it that close to the final product, then it's probably not a demo. You might as well release it as a "beta" version.
Why not take a step back and create wireframes in a tool like Balsamiq and a simple functional spec in a Word document, Google docs or a Wiki? That can be created in a comparatively small amount of time and will give you a much better foundation to build the actual product or, at least, take a step further and create a demo with limited functionality.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Good time of a day!
My team develop the soft to backup files to web storage. Now it has simle functionality - just take files from hdd, check date in local and remote file and update remote to new local.
The product owner want to to make backup in another way: on remote server replace only chenge peace of file. They want to make less traffic to storage (it's Amazon S3)
Now we have a next solution: brake file into peaces (4 kb each), count checksum of each peace, store this data in local db and at next backup verify checksums and transfer only changed peace.
But the metadata take much place on db if we backup a big amount of files
Can anybody have another solution? Thanks for help!
Rsync uses rolling hash algorithm, so you might research that.