pub enum Encryptions {
    Md5,
    Sha256,
    Sha512,
    Yescrypt,
}

Variants

Md5

MD5 encryption method.

Sha256

sha256 encryption method.

Sha512

sha512 encryption method.

Yescrypt

yescrypt encryption method.

Implementations

Returns salt prefix for selected encryption method.

use libcrypt_rs::Encryptions;
 
let encryption = Encryptions::Md5;
println!("Salt prefix for MD5 encryption: '{}'", encryption.decode());

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.