encryption

How can I add encryption to my own TCP-based-Protocol using Java Sockets?

So, I have a working protocol that the Client needs to authenticate with user and password to login on the server. Then server and client would trade messages and files. It´s all working OK and I´m using Input/Output Stream for that. I need to add encryption to the conversation and user/password authentication too. I dont want to store a...

What PHP code protection tool would you recommend? (encoding/encrypting/obfuscating/etc)

I have a client that is going to start selling a software based on PHP, and he'd like to have some level of piracy protection. We're going to have a basic licensing code check, but we need the code to not be plain-text so that anyone can't go in and comment it out. I've found a lot of "encoding/encrypting/obfuscating" tools. Some are ...

md5 hash or simpler hash implemtation in android j2me

Is there any way to encrypt data passing between two android phones in j2me? Not to mention I am using BT as medium. ...

Protecting connection strings during dev

We need to protect connection strings during development. On servers we use DPAPI which works fine. DPAPI is not an option during dev since the connection strings will need to be decrypted on many machines. Some of the user names/password used for dev are rather sensitive and we don't want them floating around. It's fine for all the ...

Encrypting files for others

I am trying to figure out an approach for encrypting files for other users using a PHP interface, while keeping their password private from system administrators (similar to Dropbox). I basically need to store files for users, yet keep their passwords unknown. Any suggestions? ...

SQL Server Cell Level Encryption

Hi I want to implement cell level encryption and only users with my ODBC will be able to connect to database and use it. What do you suggest about it? Is it possible? If yes, any resource, source code, samples, documentations on it? If it's not possible, please tell me why. Thank you! Kind Regards ...

POST to sample URL for PayPal without "form"

I am having some issue posting data to a specific URL when testing payment transactions on the paypal platform. Although much more technically understood, I chose not to use their API and NVP platform because of the requirement to FIRST create a transaction, then come back and have to create a recurring profile (as opposed to all at once...

How can I find out if the iPhone user currently has a passcode set and encryption enabled?

I'm writing an iPhone application that requires its data to be encrypted. I've learned how to turn on encryption for files by setting the NSFileProtectionComplete attribute. I also know how to check the iPhone version to make sure they are running iOS 4.0 or better. What I've realized though, that if the user has not chosen a passcode a...

Why is it a bad idea to standardize a wiretap backdoor into communication services?

This article talks about the Obama administrations plan to propose a required wiretap backdoor on all communication services like p2p, encrypted communication services, social networking, skype, etc. The article mentions that technology advocates suggest it will make life easier for hackers, which seems obvious. Can someone explain why...

how can I save Encrypted image into sql server ?

Hello, I'm doing module to save and retrieve images using SQL server database 2008 and asp.net with vb.net. i already know how to do that but I need to save the image encrypted into database because images are very secure and I'm afraid if I saved it normally as binary data any one can convert this binary to see this images. if there is ...

OpenSSL directory fine on Linux server - not on Windows XAMPP

I have a php script which looks for the openssl directory and encrypts customer data I have. When I upload the script to my online linux directory - the encryption works fine #private key file to use $MY_KEY_FILE = "my-prvkey.pem"; #public certificate file to use $MY_CERT_FILE = "my-pubcert.pem"; # Paypal's public certificate $PAYPA...

Encrypt string in Python

I need to encrpyt a small string in Python. Is it possible to use a secret key to encrypt the string? Is there a good way to do this and achieve a reasonable encpryption level using only Python libraries? Could you show me how to do this? My knowledge about cryptography is quite basic. : Thank you. ...

Is this a secure encryption method

I'm writing an application for Android that uses symmetric key encryption to protect sensitive data. As far as I can tell, Android only directly supports "PBEWithMD5AndDES". How secure is this algorithm? Also, I've included my code below (non-andriod). Is my code correctly encrypting the data? import java.io.UnsupportedEncodingException...

Objective-c AES encryption doesn't look like java AES encryption

Hi all Well im trying to encrypt an string in objective c extending NSData with this method: @implementation NSData (AES128) (NSData *)AES128Encrypt { char keyPtr[kCCKeySizeAES128] = {'\xe1','\xaa','\x9c','\x61','\x46','\x74','\x44','\x56','\xf0','\xe5','\x47','\x46','\x86','\xdc','\x95','\x77'}; NSUInteger dataLength = [self leng...

Using Kerberos to encrypt credentials / What is a static secret for a principal.

An application written in Java needs to store passwords to external services per user. Within the application the user itself authenticates against a KDC using Kerberos (basically creating a LoginContext utilizing Jaas). I would like to store the encrypted secrets to other services in some kind of file (XML?) at the applications locatio...

Intercept outputs from a Program in Windows 7

I have an executable program which outputs data to the harddisk e.g. C:\documents. I need some means to intercept the data in Windows 7 before they get to the hard drive. Then I will encrypt the data and send it back to the harddisk. Unfortunately, the .exe file does not support redirection command i.e. > in command prompt. Do you know ...

Custom Assymetric Cryptography Algorithm.

Hi everyone. I want to use an asymmetric cryptography algorithm, but i need it have short Key Size(not like RSA which is at least 384). I need it to be about around 20. Is it possible ? ...

simple encrypt/decrypt lib in python with private key

hi, is there a simple way to encrypt/decrypt a string with a key. somthing like: key = '1234' string = 'hello world' encrypted_string = encrypt(key, string) decrypt(key, encrypted_string) i couldn't find anything simple to do that. ...

RAR passwords, why don't rainbow tables work?

I've been looking around for encryption and I've seen several implementations of Rainbow Tables work like charm on passwords (say windows). I'm yet to see an implementation of a Rainbow attack on a RAR file. Why is it so. What makes RAR encryption more secure and immune to these sorts of attacks? ...

PHP's crypt challenge

A friend gave me a challenge: he encrypted a string using PHP's crypt function (CRYPT_STD_DES) (from PHP4). I know the salt used to encrypt, and as crypt is a one-way algorithm I must use brute-force method, and I know that passwords only consist of lower-case letters. Now, I have machine with 16 cores (2x Xeon), and lots of RAM. What i...