Giter VIP home page Giter VIP logo

aescrypt-objc's People

Contributors

benoitsan avatar gurpartap avatar yoiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aescrypt-objc's Issues

Decrypt string

Hi,

I have a string that I want to decode: U2FsdGVkX1+MEhsbofUNj58m+8tu9ifAKRiY/Zf8YIw= and I have this key: 3841b8485cd155d932a2d601b8cee2ec .
I can't decrypt the string using AESCrypt-ObjC
Are there any more details that I should be aware about the encryption?

Thank you,
George

pods support

The code work well for me. But would you like to support cocoa pods?

did not support ios6?

it will be crash if i run my app on ios6 ,it seemed that nsdata+base64 not support , when i moidfied nsdata+base64.m ,it will be ok~

Missing randomization in cyphertext

Hi guys, the project works perfectly but I noticed one bit issue.
When someone encrypts one and the same plaintext will get one and the same cyphertext. This means that if someone listens in the middle - the bad Eve she will be able to guess what has been sent.

Normally the password will never change for an application and I assume that this could be used to encrypt url requests for example - small length of strings. In such use I do not think that is secure enough.

What should be done is to introduce salt - random length. Something which is done in C# here: http://www.obviex.com/samples/encryptionwithsalt.aspx

I need that for a personal project and need to encrypt and decrypt this random cyphertext in iOS app and on web server with C#. Will try to implement that in objective-c and contribute if possible to your project.

Random IV support

Hello there,

I saw a closed issue about IV support and I can see from this code that IV is supported... But with a fixed IV, isn't it?

I mean, what usually happens is:

  • encrypt with a random generated IV and add the IV at the beginning of the encrypted data (for instance 16 random characters)
  • decrypt by extracting the IV at the beginning (first 16 characters) of the encrypted string and then decrypt...

Is this doable?

Thanks a lot...

Crashes App while calling decrypt

It crashes the app if you keep the default optimization level of Release build as the 'Fastest'. So changing from the defaults to 'None' helped solve crashes!

Your code have problem, kindly solve it.

Crash -[NSConcreteMutableData SHA256Hash]: unrecognized selector

Hi Gurpratap,
My app crashing for below line
NSData *encryptedData = [[message dataUsingEncoding:NSUTF8StringEncoding] AES256EncryptedDataUsingKey:[[password dataUsingEncoding:NSUTF8StringEncoding] SHA256Hash] error:nil];

with exception
-[NSConcreteMutableData SHA256Hash]: unrecognized selector sent to instance

Decrypt through PHP

Hi,

Thanks for the code. It really helps and we are getting same result in iOS and Android with your code. Now we need to decrypt this code through PHP code.

Is there any code available which directly decrypting it by providing key?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.