Click here to Skip to main content
16,018,802 members

Comments by Member 10907890 (Top 6 by date)

Member 10907890 20-Feb-15 1:26am View    
i mean to develop such like app do i need to learn any other technologies(or tools) like Phonegap,Titanium,Rhodes by Motorola,GoMo Learning?.i have seen moodle ios source code .There he used some HTML related code. i think it is written in phone gap. my question is can develop LMS app with uikit ,quardzcore,corgraphics. or do i need to learn any other technologies(or tools) like Phonegap,Titanium,Rhodes by Motorola,GoMo Learning.
Member 10907890 19-Feb-15 4:48am View    
Learn management system. it is some thing like e-Learnig app
Member 10907890 8-Aug-14 3:45am View    
Please remove my question
Member 10907890 5-Aug-14 4:07am View    
can you give nslog error like reason:
Member 10907890 5-Aug-14 4:01am View    
i used the same code but i am getting out put as IQnSTMrZfHk=
this is the code i used
- (void)viewDidLoad
{
[super viewDidLoad];


key = [[NSBundle mainBundle] pathForResource:@"key"
ofType:@".dat"];
key= [NSString stringWithContentsOfFile:key encoding:NSASCIIStringEncoding error:nil];
;
NSString *encrypted =[self doCipher:@"60266203"];

}

- (NSString*) doCipher:(NSString*)encryptValue {

const void *vplainText;
size_t plainTextBufferSize = [encryptValue length];
vplainText = (const void *) [encryptValue UTF8String];
CCCryptorStatus ccStatus;
uint8_t *bufferPtr = NULL;
size_t bufferPtrSize = 0;
size_t movedBytes = 0;

bufferPtrSize = (plainTextBufferSize + kCCBlockSizeDES) & ~(kCCBlockSizeDES - 1);
bufferPtr = malloc( bufferPtrSize * sizeof(uint8_t));
memset((void *)bufferPtr, 0x0, bufferPtrSize);

Byte iv [] = {0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef};


const void *vkey = (const void *) [key UTF8String];

ccStatus = CCCrypt(kCCEncrypt,
kCCAlgorithmDES,
kCCOptionECBMode,
vkey,
kCCKeySizeDES,
iv,
vplainText,
plainTextBufferSize,
(void *)bufferPtr,
bufferPtrSize,
&movedBytes);

NSData *myData = [NSData dataWithBytes:(const void *)bufferPtr length:(NSUInteger)movedBytes];
NSString *result = [myData base64EncodedStringWithOptions:0];

return result;
}