key

How do I combine n and e to create the public key in RSA?

Hello :) I have a 128 byte (1024 bit) modulus (in a byte array format) and my exponent (also in a byte array format). I need to create a 128 bytes byte array representing the public key. According to Wikipedia, "The public key consists of the modulus n and the public (or encryption) exponent e." But that doesn't tell me how to mix both...

where to save activation key

I am using C# and have a key the users enters to activate my program. I do not want the user to be able to see the key once it is entered. Do you have any recommendations for how/where to store it? ...

C# Plugin Architecture with Strong Names: A Misunderstanding

I have a server executable that talks to Active Directory to retrieve user information. In addition to AD, this exe allows customers to write their own plugins to talk to custom user directories. This executable is strongly named. Is the following a true statement: In order for a strongly named assembly to load another assembly, ...

How to pack java project?

I have made a java project and want to deliver it to a client but I don't want to deliver it as a jar file as the client can see the source code easily by unpacking the jar file. How can I pack my java project so client cannot look at the source code or cannot change the source code? One more thing, Can I integrate a key functionality ...

Is there a Unicode glyph that looks like a "key" icon?

Unicode has a million icon-like glyphs, but they're not always easy to search by, since I don't always know what they look like. Is there a Unicode glyph that looks like a "key"? Or is there a symbol that's used in database circles to mean "primary key", which is in Unicode? ...

python: combine sort-key-functions itemgetter and str.lower

Hi, I want to sort a list of dictionaries by dictionary key, where I don't want to distinguish between upper and lower case characters. dict1 = {'name':'peter','phone':'12355'} dict2 = {'name':'Paul','phone':'545435'} dict3 = {'name':'klaus','phone':'55345'} dict4 = {'name':'Krishna','phone':'12345'} dict5 = {'name':'Ali','phone':'5345...

What are differences between Index v.s. Key in MySQL

I know how to use INDEX as in the following code. And I know how to use foreign key and primary key. CREATE TABLE tasks ( task_id INT UNSIGNED NOT NULL AUTO_INCREMENT, parent_id INT UNSIGNED NOT NULL DEFAULT 0, task VARCHAR(100) NOT NULL, date_added TIMESTAMP NOT NULL, date_completed TIMESTAMP, PRIMARY KEY (task_id), INDEX parent...

How can you make a PHP application require a key to work?

About 4 years ago I used a php product called amember pro, it is a membership script which has plugins for lie 30 different payment processors, it was an easy way to set up an automated membership site where users would pay a payment and get access to a certain area. The script used ioncube http://www.ioncube.com/sa_encoder.php to pre...

Change "return key" in an iPhone WebApp textbox

I am creating an iPhone webapp with a textbox and would like to change the return key to "search". When you click on the textbox, the keyboard pops up and the return key on the bottom right of the keyboard displays "return" by default. However if you go to google.com on your iPhone and click on the search textbox the return key on the ...

What is the difference between signing Certificate and Encryption Certificate?

What is the difference between between signing certificate and encryption certificate? I see that signing certificate cannot be used for encrypting the data only encryption certificate. What is the technical difference? Does both have public key and private or only encryption cert will have PP key? ...

How to use two numbers as a Map key

I have two numbers and I want to use them together as a key in a Map. Currently, I'm concatenating their string representations. For example, suppose the key numbers are 4 and 12. I use: String key = 4 + "," + 12; The map is declared as Map<String, Object>. I think this is so bad! I like to use something other than a String as the ke...

CGI:Session set session key

Hi, I am new to Perl and have been asked to incorporate a perl site into an existing Ajax site. The existing site already has session management and a cookie. What I want is to be able to set the session key (from the first login) as the session to be used by the CGI:session. that way both sessions can use the same cookie and the sam...

jQuery Variables as Key in Key:Pair CSS attributes

Is it possible to take something like: $("div").css({ "top": var1, "height": var2, etc. }); And turn it into: var dir = "top"; var length = "height"; $("div").css({ dir: var1, length: var2, etc. }); So far, the only way I can get it to work is by repeatedly declaring the lines separately, such as: $("div...

PHP API Key Generator

Does anyone know of any API key generator script/class for PHP? The class should have method generate, that would generate a key and isValid() method, to check if the key is valid. Thanks! ...

AWS ssh access 'Permission denied (publickey)' issue

How to connect to a AWS instance through ssh? I have: Signed up at AWS; Created a public key and a certificate at AWS website and saved them to disk; Went to my console and created environment variables: #export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ #export EC2_CERT=/home/default/aws/cert-EBAINCRNWHDSCWWIHSOKON2YWG...

Phone-To-Server communication encryption in Java

Hi, This goes along with another thread, here: How to implement Java 256-bit AES encryption with CBC Mainly, trying to get AES encryption on a phone using Java. My question here is how to handle the encryption key. I don't know if I should store the key, hash the key and use that, or do a public-key-encyption scheme. I would rather ha...

Find all second level keys in multi-dimensional array in php

I want to generate a list of the second level of keys used. Each record does not contain all of the same keys. But I need to know what all of the keys are. array_keys() doesn't work, it only returns a list of numbers. Essentially the output Im looking for is: action, id, validate, Base, Ebase, Ftype, Qty, Type, Label, Unit I have a la...

Bug Table key field

I need to create a table to save the bugs of an application that have access on it many users, in a way to stock the bugs and manage them lately. So I need to have a key field that will be unique but identify the bug, have a meaning and also light on the server Does anyone have an idea about that case ? ...

c# How to use the ProcessDialogKey to capture special characters like "Tab", "Up" etc...

Hi! I want to register when the key "Tab" has been pressed, but can't figure out how to use the ProcessDialogKey. This is what i got: this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Keypress); private void Keypress(object sender, KeyPressEventArgs e) { MessageBox.Show("...

Keys and terminology

I have a predicament related to terminology. Our system processes events. Events are dispatched to a node based on the value of some field (or set of fields). We call this set of fields the key. We call the value of that set of fields the key value. What adds confusion is that each event is essentially a bag of key-value pairs (i.e., a...