crypto-literal

Crates.iocrypto-literal
lib.rscrypto-literal
version0.1.1
sourcesrc
created_at2020-03-24 19:45:52.102363
updated_at2020-03-24 19:45:52.102363
descriptionCrypto literal procedural macros.
homepagehttps://crates.io/crates/crypto-literal
repositoryhttps://github.com/kgv/crypto-literal
max_upload_size
id222406
size18,478
dev (github:oasislabs:dev)

documentation

https://docs.rs/crypto-literal

README

Crypto literal library

This crate has POC (Proof Of Concept) status!

Supported algorithms

  • Aes
  • Xor

Usage

First add crypto-literal crate to your Cargo.toml:

[dependencies]
crypto-literal = "0.1"

Now you can write the following code:

#![feature(proc_macro_hygiene)]

use crypto_literal::encrypt;

let crypto_literal = encrypt!("The quick brown fox jumps over the lazy dog.");

or:

#![feature(proc_macro_hygiene)]

use crypto_literal::{encrypt, CryptoLiteral};
use lazy_static::lazy_static;

lazy_static! {
    static ref CRYPTO_LITERAL: CryptoLiteral<str> =
        encrypt!("The quick brown fox jumps over the lazy dog.");
}
Commit count: 10

cargo fmt