encryption

How to use System.Web.UI.Page.DecryptString(String s) ?

Hi all, I saw with Reflector a very interesting method in System.Web.UI.Page : DecryptString(String s). But it is a "internal static method", so how can I use it ? (I dont find it in msdn doc) Thanks a lot ! ...

Error correcting key encryption

Say I have a scheme that derives a key from N different inputs. Each of the inputs may not be completely secure (f.x. bad passwords) but in combination they are secure. The simple way to do this is to concatenate all of the inputs in order and use a hash as a result. Now I want to allow key-derivation (or rather key-decryption) given on...

Quick question: Should I be encrypting OpenID's?

Its a simple question. I am storing openID's into a database so I can log users in very quickly, should I be encrypting them in my database? A better question would be, are they considered 'sensitive' information? Thanks. ...

Is there a "single line" way to generate an encrypted string?

I want to generate a link http://site/?code=xxxxxxxxxx Where xxxxxxxxxx is an encrypted string generated from the string user01. And I will need to convert it back later. Is there a simple way to encrypt and decrypt a string like this? ...

Why are the .NET "Managed" Cryptography classes NOT FIPS compliant?

I have been working on making our .NET application FIPS compliant, and have found that the Managed Cryptography classes (such as AESManaged) are not FIPS compliant. I have read several other articles and questions on which classes are compliant, such as http://stackoverflow.com/questions/939040/when-will-c-aes-algorithm-be-fips-compliant...

AES Encryption Key in .NET, Enterprise Library Encryption Block

Hello, When using AES encryption with Enterprise Library Encryption Block, it generates an AES encryption key for my machine. If we have a team of 12 developers, I assume each has to generate their own key (machine specific)? I tried giving someone else my key, but it errored. Or should that work? If it shouldn't work, how to genera...

Protecting source code from theft during development

Is there any way to protect my code during development so that if a developer leaves my company they are unable to access files in my project? This is especially important with TFS where the project is downloaded locally, cached, and available for offline use. Ideally the code would be unreadable if they did not have a valid Active Di...

php - storing encrypted string in mysql

I need to store the customers' driver license # (most of the time) (or personal ID) so when they come to pick their product they can identified themselves based on their id. This is usually the way it is handled everywhere in my country (unfortunately). However, I would like to store this #'s encrypted in mysql. I now I can make use of A...

How to deal with character Encoding in Obj-C ?

Hi, I'm a new to Obj-C (my experience is in Java and a little C) I have this project these days, which is An Arabic-Text encryption .. I need to read an arabic text file (character by character), but when I want to use these characters and store them in variables (of type char) I couldn't .. it gives me this warning "Multi-character cha...

Is RIJNDAEL encryption safe to use with small amounts of text given to users?

I am thinking about making the switch to storing session data in encrypted cookies rather than somewhere on my server. While this will result in more bandwidth used for each request - it will save extra database server load and storage space. Anyway, I plan on encrypting the cookie contents using RIJNDAEL 256. function encrypt($text, $...

encrypt PBEWithMD5AndDES in j2me

i'm triing to get this code to work on j2me (it is working a java program) but not yet in j2me public static String generate(String plaintext, String passphase) throws Exception { try { PBEKeySpec pbeKeySpec = new PBEKeySpec(passphase.toCharArray()); PBEParameterSpec pbeParamSpec; SecretKe...

encrypted app.config fails on deployed machine

Hi there. I have created an applicaton that requires the 2 connection strings in the app.config and some appSettings to be encrypted. I saved my app.config as web.config and run the asp.net aspnet_regiis -pe command for both "connectionStrings" and "appSettings" The encryption works and I can run it on my local dev box however when I...

how to encrypt password before writing to txt file and decrypt when needed to use it

i am storing the connection string provided by the user at setup time to a txt file its a website by setup i mean first access of the admin to the site well its working but i need some code which can encrypt the password text and store to file so any one having access to the system can not understand the passward, also please show ...