kCCAlignmentError - using kCCAlgorithm3DES Algorithm
<p>I have been facing this Alignment, even though i have encoded my key to base64. I want to encrypt my data without using any padding also i would like to share my input as well : </p>

<p>input = @"136bc704-39dc-4bd7-9b28-a03816dcab6e|chrome|verifyCredential|1459840622290";</p>

<p>key = @"136bc704-39dc-4bd7-9b28-a03816dcab6e";</p>

<pre><code>+ (NSData *)tripleDesEncryptString:(NSString *)input
                           key:(NSString *)key
                         error:(NSError **)error
{
      NSParameterAssert(input);
      NSParameterAssert(key);
      NSData *inputData = [input dataUsingEncoding:NSUTF8StringEncoding];
      NSData *keyData1 = [key dataUsingEncoding:NSUTF8StringEncoding];

      NSString *base64Encoded = [keyData1 base64EncodedStringWithOptions:0];
      NSLog(@"Encoded: %@", base64Encoded);


       NSData *keyData = [[NSData alloc] initWithBase64EncodedString:base64Encoded options:0];




      size_t outLength;

      NSMutableData *outputData = [NSMutableData dataWithLength:(inputData.length  +  kCCBlockSize3DES)];

      CCCryptorStatus
      result = CCCrypt(kCCEncrypt, //
                       kCCAlgorithm3DES, //
                       kCCOptionECBMode, //
                       keyData.bytes, //
                       keyData.length, //
                       nil,// iv
                       inputData.bytes, //
                       inputData.length, //  ,
                       outputData.mutableBytes, //
                       outputData.length, //
                       &amp;outLength); //

      if (result != kCCSuccess) {
          if (error != NULL) {
              *error = [NSError       errorWithDomain:@"com.your_domain.your_project_name.your_class_name."
                                           code:result
                                       userInfo:nil];
          }
          return nil;
      }
      [outputData setLength:outLength];
      return outputData;
}
</code></pre>