Skip to main content

Posts

Showing posts with the label encryption

Did I find a bug in PHP"s `crypt()`?

I think I may have found a bug in PHP's crypt() function under Windows. However : I recognize that it's probably my fault . PHP is used by millions and worked on by thousands; my code is used by tens and worked on by me. (This argument is best explained on Coding Horror .) So I'm asking for help: show me my fault. I've been trying to find it for a few days now, with no luck. The setup I'm using a Windows server installation with Apache 2.2.14 (Win32) and PHP 5.3.2. My development box runs Windows XP Professional; the 'production' server (this is an intranet setup) runs Windows Storage Server 2003. The problem happens on both. I don't see anything in php.ini related to crypt() , but will happily answer questions about my config. The problem Several scripts in my PHP app occasionally hang: the page sits there on 'waiting for localhost' and never finishes. Each of these scripts uses crypt to hash a user's password before

Encrypting a folder for an Android app?

The app I am working on gets all the files from the sdcard but these files are really important and the app should maintain a security issue .So is there a way that the folder or directory that contains the file may be encrypted or locked with a key and only be used by my app? Please help I am newbie and stuck at this point.

Iphone Build Release with encryption

Hello i just want to ask if i build my iphone app for release is it encrypted or not? When the encryption happens? How can i understand if a build is encrypted or not? product -> build for -> archiving product -> build for -> profiling product -> build for -> running product -> build for -> testing are the available...

SQLCipher Working But Incorrect Password

I've just implemented SQLCipher in my app to encrypt one fairly simple database. I followed all of the setup instructions carefully on this tutorial and the project is building and the app is running successfully. However, when I use their sample code to encrypt my database, my password is somehow incorrect and I am now unable to open my database. Here is the code: NSString *path = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent: @"dict.sqlite"]; if (sqlite3_open([path UTF8String], &database) == SQLITE_OK) { const char* key = [@"BIGSecret" UTF8String]; sqlite3_key(database, key, strlen(key)); if (sqlite3_exec(database, (const char*) "SELECT count(*) FROM sqlite_master;", NULL, NULL, NULL) == SQLITE_OK) { // password is correct, or, database has been initialized NSLog(@"Correct Password :)&qu