semvec/pypi-packages huggingface dataset:
fractus 0.1.12
Cryptographic attack library for Rust and Python
License: MIT
Keywords: crypto, attack


# Fractus
Fractus is a cryptographic attack library written in rust. It is also available through python

## Run
### Rust
`cargo add fractus`

```rust
use fractus::sha2_256;

let m = b"abc";
let h = sha2_256::compute(&m);
let e = b"cde";
let mut c = m.to_vec();
c.extend(sha2_256::padding(m.len()));
c.extend(e);
let e = sha2_256::extend(&h, m.len(), e);
assert_eq!(e, sha2_256::compute(c));
```

### Python
`pip install fractus`

```python
from fractus import sha2_256

m = b'secret' + b'abc'
h = sha2_256.compute(m)
e = b'test'
assert sha2_256.extend(h, len(m), e) == sha2_256.compute(m + sha2_256.padding(len(m)) + e)
```

## Features
### Length Extension Attack
- [x] MD4
- [x] MD5
- [x] SHA0
- [x] SHA1
- [x] SHA2_224
- [x] SHA2_256
- [x] SHA2_512
- [x] Ripemd128
- [x] Ripemd160
- [x] Ripemd256
- [x] Ripemd320
- [x] Whirlpool
ai-gcm 1.0.1
AI powered Git Commit Message Generator
License: MIT
Requires Python: <4.0,>=3.8
Keywords: git, commit, ai, ollama

# AI GCM

A command-line tool that uses AI to generate meaningful git commit messages.

## Features

- Analyzes git diff to understand code changes
- Generates human-readable summaries of changes
- Creates conventional commit messages
- Supports custom AI models
- Interactive prompts for staging changes

## Prerequisites

1. Install [Ollama](https://ollama.ai):

   ```bash
   brew install ollama
   ```

2. Pull required models:

   ```bash
   ollama pull qwen2.5-coder  # for code analysis
   ollama pull llama3.2       # for commit message generation
   ```

## Installation

```bash
pipx install ai-gcm
```

## Usage

### Generate Commit Message

```bash
# Stage your changes first
git add .

# Generate commit message with default models
ai-gcm generate

# Show detailed output including code changes summary
ai-gcm generate --verbose

# Use custom models
ai-gcm generate --summary-model qwen2.5-coder --commit-model llama3.2
```

### Options

- `--summary-model, -s`: Model to use for code summary generation (default: qwen2.5-coder)
- `--commit-model, -c`: Model to use for commit message generation (default: llama3.2)
- `--verbose, -v`: Show detailed output including summary

### Check Version

```bash
ai-gcm version
```

## Development

1. Clone the repository
2. Install dependencies:

   ```bash
   poetry install
   ```

3. Activate the virtual environment:

   ```bash
   poetry shell
   ```

## License

MIT