Giter Site home page Giter Site logo

andreburgaud / crypt2go Goto Github PK

View Code? Open in Web Editor NEW
103.0 103.0 26.0 96 KB

Go (golang) ECB mode of encryption and padding.

Home Page: https://pkg.go.dev/github.com/andreburgaud/crypt2go/ecb

License: BSD 3-Clause "New" or "Revised" License

Go 94.83% Makefile 5.17%
aes blowfish crypto ecb ecb-mode encryption golang padding pkcs security

crypt2go's People

Contributors

andreburgaud avatar andrew-enquanta avatar d6o avatar dependabot-preview[bot] avatar dependabot[bot] avatar redforks 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

crypt2go's Issues

Unnecessary padding

I recently import the repo in my work, however, some padding problems occurs:

padLen := p.blockSize - (bufLen % p.blockSize)
this operation set the padding length even if (bufLen % p.blockSize == 0), in which case the buffer is divided exactly
hence no more necessary to pad.
The current codes would catenate an extra and redandunt BLOCKSIZE bytes to the tail of block.

More details refere to NIST Special Publication 800-38A and PULL REQUEST

input not full blocks

Hi, I'm now dealing with aes-128-cbc encoding, but when passing an empty struct to the encode function on README, it gets these error:

crypto/cipher: input not full blocks

I've noticed a quote says padd last block of plaintext if block size less than block cipher size
But no idea what to do
Can you help me with this?
Thanks!

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.