Write A Protection Procedure Which Will Allow To Create A License Key For Users?
Apr 9, 2010
I am trying to write a protection procedure, which will allow me to create a licence key for our users. This licence key will ensure that the software can only run on the registered system, and will allow the user to access only specific areas of my program which is relevant to them.
I am thinking of using an RSA style approach to this where I want to be the only person who can create the registration keys. But I want to allow the program to be be able to decrypt the key. This is to prevent the average user from being able alter the key and remove any restrictions which are being imposed on the program by the license key.
The process that this would take is to produce a host id which has went through a series of tasks to distort the actual value from the user will return this code us, and from this host id I can then work out the original value of the code. Using these public and private keys I can then encrypt license key information.
However I would like to know how I would implement the private key encryption and key generation program in .NET, so that I can get this setup working in a manner which will allow me to generate keys and allow the program to decrypt keys.
I am unable to call public routines in a public class in AppCode.To debug, I built a new blank website project with a public class Class1 in AppCode and a public function Foo returning a string "Hello World".A sub CallFoo calls Foo without error if CallFoo is in Class1. If CallFoo is moved to a new class Class2 I get the above error.I have rebuilt this test site from scratch targeting Framework 3.5 and 4 with the same error. Oddly, I have found I am able to reference public constants without error.
I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:
I want to create a license key function for my application.
For example I want in this key to contact 2 values: registered_to, expiry_date.
I want the licence key to be some sort of large string like: 2349ASDGKLASD87ASDGALSDK8ASD80972K.
I would need to create some way to create keys use some sort of algorhithm that decrypts the key and grabs the registered_to and expiry_date values. It also needs to check that the key string has some sort of check digit like credit cards have, so no-one can just type in a few random letters/numbers and it accepts.
i'm trying to create a program that enables a user log into the program using a username and password, first he/she must first create an account with some vital information incase the password is forgotten so it can be retrieved
Write a Visual Basic Console Application. Inside the main procedure call a function procedure to input and return a value for a double variable called x, the width of a right triangle. Inside the main procedure call the same function procedure a second time to get a value for a double variable called y, the height of a right triangle. From the main procedure call a function procedure which calculates and returns a value for the "hypotenuse" equal to the square root of (x squared + y squared). You will have to pass the values of x and y to this function procedure. The procedure should calculate and return a double type value. The value that is returned by this function procedure should be equal to the square root of (x squared + y squared). Also from the main procedure call a sub procedure to display the values of x, y, and the hypotenuse.
This is what I have so far..
Option Strict On Option Explicit Off Module Module1
i created a list of picturebox arrays in my program :
Dim MyPicArray As New List(Of PictureBox) and i used this code to add them: MyPicArray.Add(New PictureBox())
[Code].....
the above code works the pictures are created in the form but now i want to write events for them, for example in the 'Click' event a messagebox shows. i don't know how to write the procedure i have tried this but it didn't worked :
Private Sub MyPicArray_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyPicArray.Click MessageBox.Show("It Works!") End Sub
I've designed my own encryption application in VB 2008 that has a free tools section where users can choose a particular wizard to use from the drop down. The javascript wizards display the code required to put in their own sites. I already created wizards that users can well, use.I see people have their own "contact form wizards" on their websites all the time. Where users can use the wizard and get the displayed code to copy and paste on their sites. But trying to locate source codes to these things is very aggravating on the web.So what I want to do is create my own "form wizard" like out of javascript, that allows the user to put in some information then get the displayed code to put in their own websites. I'm not looking for the generator such as the online form generators.But the javascript source code(s) for the generator itself.Then I could simply put a form generator inside of my VB-app, that will allow the user to use the wizard, then get the html code to paste in their own sites. Preferably not the PHP one because the php backend is very difficult to put in a VB app.I know that it can be done. For example copying a web pages source code then putting it inside a string, then calling that string from a button click that will open the javascript page in the webbrowser inside the VB app.
I would like to give permission to use this project to say, 10 users. The following code is fine for a single user. How can I write conditional code to provide the access to other nine users?
Submit button
If txtUsername.Text <> "Mahajan" Or txtPassword.Text <> "mh745" Then MsgBox "Access Denied! Either Username or Password is incorrect!", vbOKOnly + vbCritical, "Security Login" txtUsername.Text = "" txtPassword.Text = ""
I'm a beginner and doing a review for my final...the question is-Write a Function procedure that takes an array of Strings, sorts it using Shell sort and returns the sorted array. I do not get shell sort at all.
I'm writing a program in vb.net that automatically creates users from a database.It works fine, as long as there is no comma or there are no two spaces in the CN.
I am using the WinNT interface, so in fact it creates a SamAccountName and copies it automatically to the CN.When I create the entry manually in AD, I can add comma's and spaces without problems, so it should be a programming error.
I have a rather popular application, and I was wandering if I could allow users to create add-ons for this software. I was unable to think of a method of doing this, and I do not know where to start. If you have any questions in order to provide a better response, feel free to ask.
Can I create 2 users and they have different function??Database base using is MS Access.For example I have "staff" and "admin".Staff can insert,edit and delete data only.Admin can check the total sales of the day.Can I do that in VB.Net and can somebody give me some idea or example??
Is it possible to create a VB.Net application which users can just run without installing it first.If not, is it possible in another .Net language.The application only has to run under Windows (>= XP).
In my program you log into a MySQL database. I want to create cookie on the users machine and I want it to stay there until they press the "Logout" button. The cookie is there so that the program can constantly check to see if the cookie exists which will tell the program that user is online. How can I create a cookie?
Heres all the code I have so far:
Dim scenerymanageraccount As New System.Web.HttpCookie("scenerymanageraccount")
I created a piece of code to create users in our active directory (2003) Everything is working OK and all attributes are set correctly. Only if i logon with a created user i do not get the mapping H: to the homedrive. When looking in ADUC the path to the homedir is correct. Also permissions on the homedir are correct and the user is owner of the dir.
If i correct the path in ADUC to another path and change it back again to point to the homedir the drive mapping is made correctly, so it look's like some kind of attribute is not set correctly. I used ldp.exe to view the created user's attributes before and after modifying the path but don't see any difference.
Tried to create the dir before and after user creation but that's not making any difference.
how to create a procedure?In VB6 it was through Insert Menu > Add Procedure.Also (just out of interest) is it possible to read from a database and copy the data in to an array?I've not used Visual Express for a while and have forgotten how to do theses.
I'm wanting to create a control that allows users to upload PDF files and PDF files only. I know that there are object properties for windows forms that allow certain file types, is there anything for win apps? Or do you just have to check the end file extension after they tried to upload it and display an error? I've never done anything with web app uploading before.
I need to create an app in which different users will change data from a DataGridView. I was thinking to use SqlDependencies to automatically update changes.
I have tried the example from link bellow but it seems that something is not working properly.
[URL]
I want to mention that I am making this app in VB.NET
I am attempting to programmatically create new users in our active directory. The only part I cannot get is setting a specific accountExpires time. I have tried a number of methods, but none of them have proven profitable.
Code: Dim firstName As String = txtFirstName.Text Dim lastName As String = txtLastName.Text Dim fullName As String = firstName & " " & lastName
I cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?
Well ive created a web browser programme and created a user login form for the users to login and that works fine. Now i want to create a feature while the person is logged in, he can change users, so loging as another user whilst already logged in, for example, Admin user might be logged in and now he wants to change user to a normal user without turning the programme on and off to do so.
Trying to create a game that firsts asks for the users initials. Once the initials are entered the game from becomes visible. Can't seem to figure this out.
I am trying to create a small form that will duplicate a users entry for them.On my form i have a text box and two CheckListBox controls and a button. The user should be able enter a value into the text box, and select multiple items from both CheckedListBoxes, when they click the submit button the details will be added to a DataGridView below.
This is an example,The user enters the value Audi A4 into the textbox.
The First Checked Lsit Box is called "Colour" and from the options the user checks 'Red' and 'Blue'.
The second Checked List Box is called "Number of Doors" and from the options the user checks '3' and '5'.
When the User clicks the submit button 4 rows will be added to the DataGridView with all the different combinations, as shown below:
Model Colour No# of Doors Audi A4 Red 3 Audi A4 Red 5 Audi A4 Blue 3 Audi A4 Blue 5
I am currently using this to populate the DataGridView: