semvec/pypi-packages huggingface dataset:
hashers 0.2.2
Password hashing library in Python using Rust backend 
License: BSD-3-Clause
Keywords: uuid hash password

## Hashers

A password encoding/hasing library for Python using [Djangohashers](https://github.com/racum/rust-djangohashers) Rust crate.

## Installation

```bash
pip3 install hashers
```

### Available APIs


```python
def hashpw(password: str, algorithm: str)  -> str
def hashpw_with_salt(password: str, salt: str, algorithm: str)  -> str
def chk_password(password: str, hashpw: str) -> bool
```

### Examples

```python
>> from hashers import hashpw, hashpw_with_salt, chk_password
>> encoded_pass_1 = hashpw("password123", "blake2")
>> encoded_pass_2 = hashpw_with_salt("password123", "sdpql", "blake2")
>> chk_password(encoded_pass_1, "password123")
```

### Available algorithms:

- Argon2
- BCrypt
- PBKDF2 (Default)
- PBKDF2SHA1
- BCryptSHA256
ruuid 0.3.1
A fast UUID generator for Python using Rust
License: BSD-3-Clause
Keywords: uuid hash

## ruuid

A fast UUID generator for Python built using Rust. Its a simple wrapper on top
of Rust's [UUID](https://docs.rs/uuid/0.5.1/uuid/index.html) crate.


## How to use?

### Installation:


```bash
pip3 install ruuid==0.3.0 --force --no-cache
```

### Usage:

```bash
import ruuid

ruuid.uuid4()

'7a1ef475-904c-4d53-8985-528d09d57414'
```

## Performance

Tests ran on an M1 macbook air with 8 GB of RAM and Python 3.9

```bash
from ruuid import uuid4, simple

%timeit simple()
327 ns ± 0.442 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)

%timeit uuid4()
348 ns ± 0.707 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)

from uuid import uuid4

%timeit uuid4()
1.1 µs ± 2.91 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
```

## Available functions

- `uuid4()` - random UUID4 string
- `simple()` -  formatted simple string of UUID4
- `hyphenated()` - hyphenated UUID4 string
- `nil()` - a uuid with all zeros
- `urn()` - uuid4 as a URN string