protection

What's the best value for money c# code protection for a single developer

北慕城南 提交于 2019-12-01 09:07:40
问题 What's the best value for money c# code protection? Some just use obfuscation, others add win32 wrapping, some cost a fortune. So far I've come up with http://www.eziriz.com/ who's Intellilock looks promising. Any other suggestions? Any reasons why this is not a good idea? I know its impossible to completely protect but I'd prefer the ability to protect my code so that it would require a lot of effort in order to recover it. I do hope to sell my products eventually, while also releasing some

What's the protection flags of memory allocated by malloc?

断了今生、忘了曾经 提交于 2019-12-01 04:40:51
According to this thread ,memory allocated by malloc at least have PROT_READ | PROT_EXEC ,otherwise the contaned function can't be executed . man malloc doesn't mention anything about protection thus the question. malloc is not the right tool for allocating memory for code. You should use mmap , and depending on the paranoid security policies on your system, you might need to use mprotect too for changing the permissions. Among the reasons malloc is not the right tool: Permissions are set only with page granularity, but memory obtained by malloc is unlikely to be page-aligned, and thus you'll

Create a read-only file

自作多情 提交于 2019-12-01 04:22:55
问题 I was wondering wether it is possible to create or simulate a file with a content set at creation and the assurance that nobody can ever change the file. If possible, can I do it in java? 回答1: Setting a file to read only is not going to make it so no one can ever change it. It takes about 3 seconds to unset the read only flag. The file can then be opened in a hex editor or other program that can handle the file type and changes can be made. 回答2: yes we can make read only file in java using

Protection level of a struct field within a class

帅比萌擦擦* 提交于 2019-12-01 00:53:35
问题 I am fairly new to C# programming so this is likely a beginner's question. I get a "'A.Test.That.Fails' is inaccessible due to its protection level" error on the following code snippet and I fail to understand the reason. namespace A { class Test { public void Demo() { That[] it = new That[42]; it[0].fails = 21; } public struct That { int fails; } } } Coming from C++ programming and having read that protection rules are almost the same, since there is a single class I would expect it to work

Protection against automation

我只是一个虾纸丫 提交于 2019-11-30 09:29:47
One of our next projects is supposed to be a MS Windows based game (written in C#, with a winform GUI and an integrated DirectX display-control) for a customer who wants to give away prizes to the best players. This project is meant to run for a couple of years, with championships, ladders, tournaments, player vs. player-action and so on. One of the main concerns here is cheating, as a player would benefit dramatically if he was able to - for instance - let a custom made bot play the game for him (more in terms of strategy-decisions than in terms of playing many hours). So my question is: what

Protecting a Windows Service from untrusted users

笑着哭i 提交于 2019-11-30 08:50:20
问题 How can I prevent users from tampering with, stopping or crashing a Windows Service that is doing work in the background that may take a while to complete? Upon receiving a stop request, the service should wait until the work is complete before stopping. There is the CanStop flag for services, but I'm not sure how to respond to the OnStop message. And if the user does try to crash the service, how can I prevent further tampering? Edit: Generalised question from parental control to any

What can done to secure jar files besides obfuscation?

天大地大妈咪最大 提交于 2019-11-30 06:01:17
问题 I'm concerned about the security of Java executables. They offer little protection against decompilation. With tools like Java Decompiler even a kid can decompile the class files to get the original code. Apart from code obfuscation what can be done to protect a class file? Is the Encrypted Class Loader still a myth? 回答1: In a previous company we had such questions, mainly driven by management paranoia. First of all, you have to understand that absolute security is only a myth: As long as

Excel File Password Protection with Open XML SDK

给你一囗甜甜゛ 提交于 2019-11-30 06:00:10
问题 I am using Open XML SDK for creating excel files. I want to protect them with a password. Do you know anyway to protect excel file with a password by using Open XML SDK? I know "com" object way to protect them however, it is not suitable for my application. I need to protect file by using Open XML SDK or another way. 回答1: Creating an excel password for protecting workbook or worksheet is possible by open xml. Following code samples are suggestions of Vincent (http://spreadsheetlight.com/about

Piracy protection using USB based hardware solution

心已入冬 提交于 2019-11-30 04:49:27
问题 i want to protect my Java product by using some USB-based authentication and password management solution like you can buy it here: aladdin This mean that you have to connect a USB stick with a special software on it, before you can start your application. I would like to here some experience of users which have used hardware like this. Is this as safe as it sounds? General: How much money you would spend to protect a software which would sell 100 times? I will obfuscate my Java code and save

How to prevent resale of PHP source? [closed]

梦想的初衷 提交于 2019-11-29 23:34:15
问题 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 4 years ago . Do you have a strategy for this? If I sell a web-system to a client and in accordance with the legal agreement, the customer is not allowed to sell it to others, how can I be sure he doesn't do that anyway? My first idea is some sort of key that must be in the root directory, and