Skip to content

Commit

Permalink
cleanup + how to install
Browse files Browse the repository at this point in the history
  • Loading branch information
bstnbuck committed Mar 3, 2024
1 parent b74d510 commit 44407d0
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 63 deletions.
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* the **current implementation status** of the official V community.
* less known but relevant as well as self-developed official algorithms that might be published here.

### Cryptographic algorithms and protocols available in V standard library
## Cryptographic algorithms and protocols available in V standard library
| algorithm | category, info | importance | status |
| --- | --- | --- | --- |
| **AES** | symmetric block cipher | high, daily use | implemented :heavy_check_mark: [[Git](https://github.com/vlang/v/tree/master/vlib/crypto/aes)]|
Expand All @@ -39,7 +39,7 @@

> Last Update: 18-02-2024
### Cryptographic algorithms and protocols (not officially) planned for V standard library
## Cryptographic algorithms and protocols (not officially) planned for V standard library

The V wrapper libsodium [[Git](https://github.com/vlang/libsodium)] has some of these algorithms.

Expand All @@ -61,7 +61,7 @@ The V wrapper libsodium [[Git](https://github.com/vlang/libsodium)] has some of

> Last Update: 18-02-2024
### Additional cryptographic algorithms implemented/planned in V-crypto (this Repo)
## Additional cryptographic algorithms implemented/planned in V-crypto (this Repo)

The V wrapper libsodium [[Git](https://github.com/vlang/libsodium)] has some of these algorithms.

Expand All @@ -86,4 +86,28 @@ The V wrapper libsodium [[Git](https://github.com/vlang/libsodium)] has some of
| **Twofisch** | symmetric block cipher | moderate | :x: |
| **yescrypt** | hash-algorithm / key derivation function | high | :x: |

> Last Update: 21-02-2024
> Last Update: 21-02-2024
---
## v_crypto
### Installation
```bash
v install https://github.com/bstnbuck/V-crypto
```

### Usage
```v
import v_crypto.md4
fn main(){
// short way to get MD4 hex hash
println("`test` hashed with MD4 is: "+md4.hexhash("test"))
// long way to get bytes array
mut d := md4.new()
blocksize, bytes_hash := d.checksum('test'.bytes())
println("input produces a bytes checksum $bytes_hash.hex() with block size: $blocksize")
d.reset() // with reset, a new empty checksum can be produced
_, _ := d.checksum('Hi from V_crypto. This is an example of a long long line.'.bytes())
}
```
Empty file removed argon2/nothing
Empty file.
Empty file removed bp256r1/nothing
Empty file.
Empty file removed bp384r1/nothing
Empty file.
Empty file removed bp521r1/nothing
Empty file.
File renamed without changes.
59 changes: 0 additions & 59 deletions cipher/cipher.v

This file was deleted.

File renamed without changes.
Empty file removed cipher/eax/nothing
Empty file.
Empty file removed cipher/ecb/nothing
Empty file.
Empty file removed cipher/ige/nothing
Empty file.
File renamed without changes.
Empty file removed curve448/nothing
Empty file.
Empty file removed ed448/nothing
Empty file.
Empty file removed kyber512/nothing
Empty file.
Empty file removed ripemd160/nothing
Empty file.
Empty file removed salsa20/nothing
Empty file.
Empty file removed scrypt/nothing
Empty file.
Empty file removed twofish/nothing
Empty file.
Empty file removed yescrypt/nothing
Empty file.

0 comments on commit 44407d0

Please sign in to comment.