Permalink
Browse files

renamed the project name.

  • Loading branch information...
1 parent 412010a commit f1ef333000d630a37be8c9b2b77e60c42952940b @lakesoft lakesoft committed Jun 2, 2011
@@ -69,15 +69,15 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
- (IBAction)encrypt:(id)sender
{
- [FBEncryptorAES setBase64SeparateLines:[self.separateline isOn]];
- self.encrypted.text = [FBEncryptorAES encryptBase64Message:self.message.text
- keyString:self.key.text];
+ self.encrypted.text = [FBEncryptorAES encryptBase64String:self.message.text
+ keyString:self.key.text
+ separateLines:[self.separateline isOn]];
NSLog(@"encrypted: %@", self.encrypted.text);
}
- (IBAction)decrypt:(id)sender
{
- NSString* msg = [FBEncryptorAES decryptBase64Message:self.encrypted.text
+ NSString* msg = [FBEncryptorAES decryptBase64String:self.encrypted.text
keyString:self.key.text];
if (msg) {
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>jp.5tec.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>NSMainNibFile</key>
+ <string>MainWindow</string>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'FBEncrypt' target in the 'FBEncrypt' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_3_0
+#warning "This project uses features only available in iPhone SDK 3.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
@@ -28,13 +28,13 @@ - (void)tearDown
- (void)testEncrypt
{
- STAssertEqualObjects([FBEncryptorAES encryptBase64Message:@"Write text here and touch encrypt button and confirm the encrypted message."
+ STAssertEqualObjects([FBEncryptorAES encryptBase64String:@"Write text here and touch encrypt button and confirm the encrypted message."
keyString:@"sampleprivatekey"
separateLines:NO],
@"kWxGYHe3mYeeWTdpnM7V4/TZ1Dmg+PLUkkOdCc8AQxAz+6oDf7kCBMWMwOUFMe7m7LxzSi9T43Pb1XaG7409vb0QaDO8eZMHmJgXx/oGbEA=",
nil);
- STAssertEqualObjects([FBEncryptorAES encryptBase64Message:@"Write text here and touch encrypt button and confirm the encrypted message."
+ STAssertEqualObjects([FBEncryptorAES encryptBase64String:@"Write text here and touch encrypt button and confirm the encrypted message."
keyString:@"sampleprivatekey"
separateLines:YES],
//123456789+123456789+123456789+123456789+123456789+123456789+1234|<=64
@@ -45,7 +45,7 @@ - (void)testEncrypt
- (void)testDecrypt
{
- STAssertEqualObjects([FBEncryptorAES decryptBase64Message:@"kWxGYHe3mYeeWTdpnM7V4/TZ1Dmg+PLUkkOdCc8AQxAz+6oDf7kCBMWMwOUFMe7m7LxzSi9T43Pb1XaG7409vb0QaDO8eZMHmJgXx/oGbEA="
+ STAssertEqualObjects([FBEncryptorAES decryptBase64String:@"kWxGYHe3mYeeWTdpnM7V4/TZ1Dmg+PLUkkOdCc8AQxAz+6oDf7kCBMWMwOUFMe7m7LxzSi9T43Pb1XaG7409vb0QaDO8eZMHmJgXx/oGbEA="
keyString:@"sampleprivatekey"],
@"Write text here and touch encrypt button and confirm the encrypted message.",
nil);
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>jp.5tec.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>BNDL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+</dict>
+</plist>
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'FBEncryptTests' target in the 'FBEncryptTests' project
+//
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+#endif
Oops, something went wrong.

0 comments on commit f1ef333

Please sign in to comment.