Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 892907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:08:08+00:00 2026-05-15T14:08:08+00:00

I am trying to decrypt the data from last couple of days. I decrypt

  • 0

I am trying to decrypt the data from last couple of days. I decrypt the data but the result is not same as original. Please, can anyone suggest how I can do this. I am trying to decrypt the following data:

Encrypted Data : “Mmb9tEkmW82oFPJb3vNhHA==”

Encrypt Key : “91860F52E5C3A09BA3B827F28070E08D”

Original data: “Marco”

Please help.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T14:08:08+00:00Added an answer on May 15, 2026 at 2:08 pm

    Here is how I used AES128

    - (NSData *)cipherData:(NSData *)data {
        return [self aesOperation:kCCEncrypt OnData:data];
    }
    
    - (NSData *)decipherData:(NSData *)data {
        return [self aesOperation:kCCDecrypt OnData:data];
    }
    
    
    - (NSData *)aesOperation:(CCOperation)op OnData:(NSData *)data {
        NSData *outData = nil;
    
        // Data in parameters   
        const void *key = cipherKey.bytes;
        const void *dataIn = data.bytes;
        size_t dataInLength = data.length;  
        // Data out parameters
        size_t outMoved = 0;
    
        // Init out buffer
        unsigned char outBuffer[BUFFER_SIZE];
        memset(outBuffer, 0, BUFFER_SIZE);
        CCCryptorStatus status = -1;
    
        status = CCCrypt(op, kCCAlgorithmAES128, kCCOptionPKCS7Padding, key, kCCKeySizeAES256, NULL,
                     dataIn, dataInLength, &outBuffer, BUFFER_SIZE, &outMoved);
    
        if(status == kCCSuccess) {  
            outData = [NSData dataWithBytes:outBuffer length:outMoved];
        } else if(status == kCCBufferTooSmall) {
            // Resize the out buffer
            size_t newsSize = outMoved;
            void *dynOutBuffer = malloc(newsSize);
            memset(dynOutBuffer, 0, newsSize);
            outMoved = 0;
    
            status = CCCrypt(op, kCCAlgorithmAES128, kCCOptionPKCS7Padding, key, kCCKeySizeAES256, NULL,
                         dataIn, dataInLength, &outBuffer, BUFFER_SIZE, &outMoved);
    
        if(status == kCCSuccess) {  
            outData = [NSData dataWithBytes:outBuffer length:outMoved];
        }
    }
    
    return outData; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to encrypt some data from python (Google App Engine) and then decrypt
Trying to write a couple of functions that will encrypt or decrypt a file
I am trying to encrypt and decrypt some simple text. But for some reason
Hi ive been trying to use System.Security.Cryptography to encrypt and decrypt a file but
I'm trying to encrypt and decrypt data using RSA in C#. I have the
I am trying to decrypt data that has been encrypted previously in RSA (don't
I am trying to retrieve data from a table from some old legacy work,
I am trying to pass some encrypted data to a flash , but I
I am trying to import data from a FoxPro database into Sql Server however
I am trying to write a stored procedure to decrypt some data encrypted by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.