Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

niluxv/rust-crypto

 
 

Repository files navigation

Deprecated

Use e.g. RustCrypto or ring instead.

Rust-crypto-maintained

Build Status Build status

A (mostly) pure-Rust implementation of various common cryptographic algorithms. Fork of Rust-Crypto by DaGenix: https://github.com/DaGenix/rust-crypto.

This fork aims to maintain Rust-Crypto because it is unmainained. It is intended to be used as a temporary replacement for Rust-Crypto. This fork is not actively maintained. New users should look for something else, for example Rust Crypto.

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.

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

Usage

Rust-crypto-maintained isn't on <crates.io>. To use Rust-crypto-maintained, add the following to your Cargo.toml:

[dependencies]
rust-crypto-maintained = { git = "https://github.com/niluxv/rust-crypto", branch = "stable_0.2" }

and for rust edition 2015 the following to your crate root:

extern crate crypto;

Algorithms

Rust-crypto-maintained supports the same algorithems as Rust-Crypto. Currently supported algorithms include:

  • AES
  • Bcrypt
  • BLAKE2b
  • BLAKE2s
  • 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)
  • Sha3
  • Sosemanuk
  • Whirlpool

License

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

About

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

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 99.0%
  • Other 1.0%