aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDataAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDataAdditions.m')
-rw-r--r--Source/SPDataAdditions.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPDataAdditions.m b/Source/SPDataAdditions.m
index d50ee631..b8f4ee3a 100644
--- a/Source/SPDataAdditions.m
+++ b/Source/SPDataAdditions.m
@@ -28,6 +28,7 @@
// More info at <http://code.google.com/p/sequel-pro/>
#import "SPDataAdditions.h"
+
#include <zlib.h>
#include <openssl/aes.h>
#include <openssl/sha.h>
@@ -107,7 +108,7 @@ static char base64encodingTable[64] = {
return base64;
}
-- (NSData*)dataEncryptedWithPassword:(NSString*)password
+- (NSData *)dataEncryptedWithPassword:(NSString *)password
{
// Create a random 128-bit initialization vector
srand(time(NULL));
@@ -146,7 +147,7 @@ static char base64encodingTable[64] = {
return [NSData dataWithBytesNoCopy:encryptedBytes length:totalLength];
}
-- (NSData*)dataDecryptedWithPassword:(NSString*)password
+- (NSData *)dataDecryptedWithPassword:(NSString *)password
{
// Create the key from the password hash