Code Monkey home page Code Monkey logo

bruteforce-rs's Introduction

bruteforce-rs's People

Contributors

chinoto avatar deeprobin avatar ltheinrich avatar moskalyka avatar nereuxofficial avatar restioson avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

bruteforce-rs's Issues

Fix doc in examples

cargo test --no-default-features fails, because the example uses constants of the "constants" feature. Is there a possibility to add #cfg's to doc?

Better charset Management

I would recommend using something like a own charset type. And a CharsetBuilder which builds a charset by string or char array.
The point is it should not be slower than the current solution.
Ideas are welcome.

Why? For example, so that you can go through the whole Unicode charset without storing each individual Unicode char in an array

Add macros

One could introduce a macro to create charsets from a string

charset!("ABCDEFG");
charset!(&['A', 'B', 'C', 'D', 'E', 'F', 'G']);
charset!(b'a'..b'z');
charset!('a'..'z');

And a macro to chain two charsets

concat_charset!(UPPERCASE_CHARS, LOWERCASE_CHARS)

Improve performance

The function raw_next builds the entire string from scratch every time it is called when it could be reusing a buffer and just changing the last character each time.

Maybe with String.pop() and String.push(c)

"Feature `generators` has been removed" error with rustc 1.75 nightly

When trying to compile the library with the latest nightly, I get the following error:

   Compiling bruteforce v0.2.1
error[E0557]: feature has been removed
 --> /home/.../bruteforce-0.2.1/src/lib.rs:4:18
  |
4 | #![feature(test, generators, proc_macro_hygiene)]
  |                  ^^^^^^^^^^ feature has been removed
  |
  = note: renamed to `coroutine`

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.