Giter VIP home page Giter VIP logo

Comments (2)

AKushWarrior avatar AKushWarrior commented on May 29, 2024

This actually looks like good code on your part, so I'll spend some time figuring out what's wrong here. Thanks for the heads up, and I'll comment back when I publish a hotfix.

from steel_crypt.

AKushWarrior avatar AKushWarrior commented on May 29, 2024

Okay, the issue is fixed. The problem is that ECB, as a mode, is incompatible with an IV. Thus, there was an internal error with passing an IV, since I abstract AES modes together. Regardless, it's been fixed.
If you update to the latest version of steel_crypt (1.3.2+1), you will be able to run the code below:

var FortunaKey = 'qHjzUlcH02Q0zupxOSPPVQoY-LBI8Cmf4WoUNhw90B4==';

var aesEncrypter = AesCrypt(FortunaKey, 'ecb');

String encrypted = aesEncrypter.encrypt('1234567890');

print(encrypted);

However, I would be remiss if I didn't note that ECB is dangerously insecure. Because it's the only mode which doesn't take an IV, it's susceptible to key-parsing attacks, and should only ever be used with small (length < 16) blocks of data. Because of this, I'd recommend you use another mode; my personal recommendation is CFB-64.

from steel_crypt.

Related Issues (20)

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.