#sha-2 #sha-1 #aes #md5 #crypto

unmaintained rust-crypto

A (mostly) pure-Rust implementation of various common cryptographic algorithms

39 releases

Uses old Rust 2015

0.2.36 May 20, 2016
0.2.34 Oct 29, 2015
0.2.31 Apr 4, 2015
0.2.27 Mar 30, 2015
0.1.2 Nov 24, 2014

#54 in #md5

Download history 13720/week @ 2024-08-04 13749/week @ 2024-08-11 13968/week @ 2024-08-18 15692/week @ 2024-08-25 15767/week @ 2024-09-01 15237/week @ 2024-09-08 16065/week @ 2024-09-15 13999/week @ 2024-09-22 13797/week @ 2024-09-29 13574/week @ 2024-10-06 15321/week @ 2024-10-13 19302/week @ 2024-10-20 19551/week @ 2024-10-27 17223/week @ 2024-11-03 15773/week @ 2024-11-10 13433/week @ 2024-11-17

66,413 downloads per month
This crate has lost popularity

MIT/Apache

2MB
25K SLoC

Rust-Crypto

Build Status

A (mostly) pure-Rust implementation of various common cryptographic algorithms.

Rust-Crypto seeks to create practical, auditable, pure-Rust implementations of common cryptographic algorithms with a minimum amount of assembly code where appropriate. The x86-64, x86, and ARM architectures are supported, although the x86-64 architecture receives the most testing.

Rust-Crypto targets the current, stable build of Rust. If you are having issues while using an older version, please try upgrading to the latest stable.

Rust-Crypto has not been thoroughly audited for correctness, so any use where security is important is not recommended at this time.

Usage

To use Rust-Crypto, add the following to your Cargo.toml:

[dependencies]
rust-crypto = "^0.2"

and the following to your crate root:

extern crate crypto;

Contributions

Contributions are extremely welcome. The most significant needs are help adding documentation, implementing new algorithms, and general cleanup and improvement of the code. By submitting a pull request you are agreeing to make you work available under the license terms of the Rust-Crypto project.

License

Rust-Crypto is dual licensed under the MIT and Apache 2.0 licenses, the same licenses as the Rust compiler.

Algorithms

Rust-Crypto already supports a significant number of algorithms and with your help it will support even more in the future. Currently supported algorithms include:

  • AES
  • Bcrypt
  • Blake2B
  • Blowfish
  • ChaCha20
  • Curve25519
  • ECB, CBC, and CTR block cipher modes
  • Ed25519
  • Fortuna
  • Ghash
  • HC128
  • HMAC
  • MD5
  • PBKDF2
  • PKCS padding for CBC block cipher mode
  • Poly1305
  • RC4
  • RIPEMD-160
  • Salsa20 and XSalsa20
  • Scrypt
  • Sha1
  • Sha2 (All fixed output size variants)
  • Sosemanuk
  • Whirlpool

Dependencies