Git Product home page Git Product logo

go-mcrypt's People

Contributors

mfpierre avatar

Stargazers

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

Watchers

 avatar

go-mcrypt's Issues

Any idea how to use this on windows? Fatal error: mcrypt.h: No such file

I get the following error when trying to use this library:

# github.com/mfpierre/go-mcrypt
vendor\github.com\mfpierre\go-mcrypt\mcrypt.go:7:10: fatal error: mcrypt.h: No such file or directory
 #include <mcrypt.h>
          ^~~~~~~~~~
compilation terminated.

I have already installed mcrypt from here: https://sourceforge.net/projects/mcrypt/
This gave me mcrypt.exe as well as a bunch of dll files, which I have put on my path.
How/where do I get this mcrypt.h file?

Puzzled: Invalid key length

First of all. thanks for that you provide this project. it's very helpful ! and I hope that you can understand what i have writen. cuz my english is not so well. :)

well, i have a problem when i do the decrypt&encrypt with this tool .
the function: mcrypt_enc_get_key_size which returns a integer of "Default Key Size". The question is, when i choose Rijndael-128 as CipherName. The requiredKeySize must be 32. Dose that mean 16 or 24 is not supported ?

so. i have to do something like this :

if (keyLength > requiredKeySize) {
	*err = INVALID_KEY_LENGTH;
	mcrypt_module_close(td);
	return NULL;
}

and i also knew that is not right :(

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.