pub struct WasmiumRandom;
Expand description
WasmiumRandom
contains helper method to generate different random byte length.
See module level documentation for more details crate
Implementations§
Source§impl WasmiumRandom
impl WasmiumRandom
Sourcepub fn secure_alphabet12() -> [u8; 12]
pub fn secure_alphabet12() -> [u8; 12]
Generate alphabet bytes of size 12
Sourcepub fn secure_alphabet24() -> [u8; 24]
pub fn secure_alphabet24() -> [u8; 24]
Generate alphabet bytes of size 24
Sourcepub fn secure_alphabet32() -> [u8; 32]
pub fn secure_alphabet32() -> [u8; 32]
Generate alphabet bytes of size 32
Sourcepub fn secure_alphabet64() -> [u8; 64]
pub fn secure_alphabet64() -> [u8; 64]
Generate alphabet bytes of size 64
Sourcepub fn secure_alphabet128() -> [u8; 128]
pub fn secure_alphabet128() -> [u8; 128]
Generate alphabet bytes of size 128
Sourcepub fn secure_alphabet256() -> [u8; 256]
pub fn secure_alphabet256() -> [u8; 256]
Generate alphabet bytes of size 256
Sourcepub fn secure_alphabet512() -> [u8; 512]
pub fn secure_alphabet512() -> [u8; 512]
Generate alphabet bytes of size 512
Sourcepub fn secure_alphabet1024() -> [u8; 1024]
pub fn secure_alphabet1024() -> [u8; 1024]
Generate alphabet bytes of size 1024
Sourcepub fn secure_alphabet2048() -> [u8; 2048]
pub fn secure_alphabet2048() -> [u8; 2048]
Generate english alphabet bytes of size 2048
Source§impl WasmiumRandom
impl WasmiumRandom
Sourcepub fn secure_alphanumeric12() -> [u8; 12]
pub fn secure_alphanumeric12() -> [u8; 12]
Generate alphanumeric bytes of size 12
Sourcepub fn secure_alphanumeric24() -> [u8; 24]
pub fn secure_alphanumeric24() -> [u8; 24]
Generate alphanumeric bytes of size 24
Sourcepub fn secure_alphanumeric32() -> [u8; 32]
pub fn secure_alphanumeric32() -> [u8; 32]
Generate alphanumeric bytes of size 32
Sourcepub fn secure_alphanumeric64() -> [u8; 64]
pub fn secure_alphanumeric64() -> [u8; 64]
Generate alphanumeric bytes of size 64
Sourcepub fn secure_alphanumeric128() -> [u8; 128]
pub fn secure_alphanumeric128() -> [u8; 128]
Generate alphanumeric bytes of size 128
Sourcepub fn secure_alphanumeric256() -> [u8; 256]
pub fn secure_alphanumeric256() -> [u8; 256]
Generate alphanumeric bytes of size 256
Sourcepub fn secure_alphanumeric512() -> [u8; 512]
pub fn secure_alphanumeric512() -> [u8; 512]
Generate alphanumeric bytes of size 512
Sourcepub fn secure_alphanumeric1024() -> [u8; 1024]
pub fn secure_alphanumeric1024() -> [u8; 1024]
Generate alphanumeric bytes of size 1024
Sourcepub fn secure_alphanumeric2048() -> [u8; 2048]
pub fn secure_alphanumeric2048() -> [u8; 2048]
Generate alphanumeric bytes of size 2048
Source§impl WasmiumRandom
impl WasmiumRandom
Sourcepub fn secure_numeric12() -> [u8; 12]
pub fn secure_numeric12() -> [u8; 12]
Generate numeric bytes of size 12
Sourcepub fn secure_numeric24() -> [u8; 24]
pub fn secure_numeric24() -> [u8; 24]
Generate numeric bytes of size 24
Sourcepub fn secure_numeric32() -> [u8; 32]
pub fn secure_numeric32() -> [u8; 32]
Generate numeric bytes of size 32
Sourcepub fn secure_numeric64() -> [u8; 64]
pub fn secure_numeric64() -> [u8; 64]
Generate numeric bytes of size 64
Sourcepub fn secure_numeric128() -> [u8; 128]
pub fn secure_numeric128() -> [u8; 128]
Generate numeric bytes of size 128
Sourcepub fn secure_numeric256() -> [u8; 256]
pub fn secure_numeric256() -> [u8; 256]
Generate numeric bytes of size 256
Sourcepub fn secure_numeric512() -> [u8; 512]
pub fn secure_numeric512() -> [u8; 512]
Generate numeric bytes of size 512
Sourcepub fn secure_numeric1024() -> [u8; 1024]
pub fn secure_numeric1024() -> [u8; 1024]
Generate numeric bytes of size 1024
Sourcepub fn secure_numeric2048() -> [u8; 2048]
pub fn secure_numeric2048() -> [u8; 2048]
Generate numeric bytes of size 2048
Source§impl WasmiumRandom
impl WasmiumRandom
Sourcepub fn wyrand_alphabet12() -> [u8; 12]
pub fn wyrand_alphabet12() -> [u8; 12]
Generate alphabet bytes of size 12
Sourcepub fn wyrand_alphabet24() -> [u8; 24]
pub fn wyrand_alphabet24() -> [u8; 24]
Generate alphabet bytes of size 24
Sourcepub fn wyrand_alphabet32() -> [u8; 32]
pub fn wyrand_alphabet32() -> [u8; 32]
Generate alphabet bytes of size 32
Sourcepub fn wyrand_alphabet64() -> [u8; 64]
pub fn wyrand_alphabet64() -> [u8; 64]
Generate alphabet bytes of size 64
Sourcepub fn wyrand_alphabet128() -> [u8; 128]
pub fn wyrand_alphabet128() -> [u8; 128]
Generate alphabet bytes of size 128
Sourcepub fn wyrand_alphabet256() -> [u8; 256]
pub fn wyrand_alphabet256() -> [u8; 256]
Generate alphabet bytes of size 256
Sourcepub fn wyrand_alphabet512() -> [u8; 512]
pub fn wyrand_alphabet512() -> [u8; 512]
Generate alphabet bytes of size 512
Sourcepub fn wyrand_alphabet1024() -> [u8; 1024]
pub fn wyrand_alphabet1024() -> [u8; 1024]
Generate alphabet bytes of size 1024
Sourcepub fn wyrand_alphabet2048() -> [u8; 2048]
pub fn wyrand_alphabet2048() -> [u8; 2048]
Generate english alphabet bytes of size 2048
Source§impl WasmiumRandom
impl WasmiumRandom
Sourcepub fn wyrand_alphanumeric12() -> [u8; 12]
pub fn wyrand_alphanumeric12() -> [u8; 12]
Generate alphanumeric bytes of size 12
Sourcepub fn wyrand_alphanumeric24() -> [u8; 24]
pub fn wyrand_alphanumeric24() -> [u8; 24]
Generate alphanumeric bytes of size 24
Sourcepub fn wyrand_alphanumeric32() -> [u8; 32]
pub fn wyrand_alphanumeric32() -> [u8; 32]
Generate alphanumeric bytes of size 32
Sourcepub fn wyrand_alphanumeric64() -> [u8; 64]
pub fn wyrand_alphanumeric64() -> [u8; 64]
Generate alphanumeric bytes of size 64
Sourcepub fn wyrand_alphanumeric128() -> [u8; 128]
pub fn wyrand_alphanumeric128() -> [u8; 128]
Generate alphanumeric bytes of size 128
Sourcepub fn wyrand_alphanumeric256() -> [u8; 256]
pub fn wyrand_alphanumeric256() -> [u8; 256]
Generate alphanumeric bytes of size 256
Sourcepub fn wyrand_alphanumeric512() -> [u8; 512]
pub fn wyrand_alphanumeric512() -> [u8; 512]
Generate alphanumeric bytes of size 512
Sourcepub fn wyrand_alphanumeric1024() -> [u8; 1024]
pub fn wyrand_alphanumeric1024() -> [u8; 1024]
Generate alphanumeric bytes of size 1024
Sourcepub fn wyrand_alphanumeric2048() -> [u8; 2048]
pub fn wyrand_alphanumeric2048() -> [u8; 2048]
Generate alphanumeric bytes of size 2048
Source§impl WasmiumRandom
impl WasmiumRandom
Sourcepub fn wyrand_numeric12() -> [u8; 12]
pub fn wyrand_numeric12() -> [u8; 12]
Generate numeric bytes of size 12
Sourcepub fn wyrand_numeric24() -> [u8; 24]
pub fn wyrand_numeric24() -> [u8; 24]
Generate numeric bytes of size 24
Sourcepub fn wyrand_numeric32() -> [u8; 32]
pub fn wyrand_numeric32() -> [u8; 32]
Generate numeric bytes of size 32
Sourcepub fn wyrand_numeric64() -> [u8; 64]
pub fn wyrand_numeric64() -> [u8; 64]
Generate numeric bytes of size 64
Sourcepub fn wyrand_numeric128() -> [u8; 128]
pub fn wyrand_numeric128() -> [u8; 128]
Generate numeric bytes of size 128
Sourcepub fn wyrand_numeric256() -> [u8; 256]
pub fn wyrand_numeric256() -> [u8; 256]
Generate numeric bytes of size 256
Sourcepub fn wyrand_numeric512() -> [u8; 512]
pub fn wyrand_numeric512() -> [u8; 512]
Generate numeric bytes of size 512
Sourcepub fn wyrand_numeric1024() -> [u8; 1024]
pub fn wyrand_numeric1024() -> [u8; 1024]
Generate numeric bytes of size 1024
Sourcepub fn wyrand_numeric2048() -> [u8; 2048]
pub fn wyrand_numeric2048() -> [u8; 2048]
Generate numeric bytes of size 2048
Source§impl WasmiumRandom
impl WasmiumRandom
Sourcepub fn secure_bip39() -> [&'static str; 6]
pub fn secure_bip39() -> [&'static str; 6]
Generate BIP39 phrase 6
words long`
Sourcepub fn secure_bip39_8words() -> [&'static str; 8]
pub fn secure_bip39_8words() -> [&'static str; 8]
Generate BIP39 phrase 8
words long`
Sourcepub fn secure_bip39_12words() -> [&'static str; 12]
pub fn secure_bip39_12words() -> [&'static str; 12]
Generate BIP39 phrase 12
words long`
Sourcepub fn secure_bip39_16words() -> [&'static str; 16]
pub fn secure_bip39_16words() -> [&'static str; 16]
Generate BIP39 phrase 16
words long`
Sourcepub fn secure_eff_shortlist() -> [&'static str; 6]
pub fn secure_eff_shortlist() -> [&'static str; 6]
Generate EFF Short word list phrase 6
words long`
Sourcepub fn secure_eff_shortlist_8words() -> [&'static str; 8]
pub fn secure_eff_shortlist_8words() -> [&'static str; 8]
Generate EFF short word list phrase 8
words long`
Sourcepub fn secure_eff_shortlist_12words() -> [&'static str; 12]
pub fn secure_eff_shortlist_12words() -> [&'static str; 12]
Generate EFF short word list phrase 12
words long`
Sourcepub fn secure_eff_shortlist_16words() -> [&'static str; 16]
pub fn secure_eff_shortlist_16words() -> [&'static str; 16]
Generate EFF short word list phrase 16
words long`
Sourcepub fn secure_eff_largelist() -> [&'static str; 4]
pub fn secure_eff_largelist() -> [&'static str; 4]
Generate EFF large word list phrase 4
words long`
Sourcepub fn secure_eff_largelist_6words() -> [&'static str; 6]
pub fn secure_eff_largelist_6words() -> [&'static str; 6]
Generate EFF large word list phrase 6
words long`
Sourcepub fn secure_eff_largelist_8words() -> [&'static str; 8]
pub fn secure_eff_largelist_8words() -> [&'static str; 8]
Generate EFF large word list phrase 8
words long`
Sourcepub fn secure_eff_largelist_12words() -> [&'static str; 12]
pub fn secure_eff_largelist_12words() -> [&'static str; 12]
Generate EFF large word list phrase 12
words long`
Sourcepub fn secure_eff_largelist_16words() -> [&'static str; 16]
pub fn secure_eff_largelist_16words() -> [&'static str; 16]
Generate EFF large word list phrase 16
words long`
Sourcepub fn wyrand_bip39() -> [&'static str; 6]
pub fn wyrand_bip39() -> [&'static str; 6]
Generate BIP39 phrase 6
words long`
Sourcepub fn wyrand_bip39_8words() -> [&'static str; 8]
pub fn wyrand_bip39_8words() -> [&'static str; 8]
Generate BIP39 phrase 8
words long`
Sourcepub fn wyrand_bip39_12words() -> [&'static str; 12]
pub fn wyrand_bip39_12words() -> [&'static str; 12]
Generate BIP39 phrase 12
words long`
Sourcepub fn wyrand_bip39_16words() -> [&'static str; 16]
pub fn wyrand_bip39_16words() -> [&'static str; 16]
Generate BIP39 phrase 16
words long`
Sourcepub fn wyrand_eff_shortlist() -> [&'static str; 6]
pub fn wyrand_eff_shortlist() -> [&'static str; 6]
Generate EFF Short word list phrase 6
words long`
Sourcepub fn wyrand_eff_shortlist_8words() -> [&'static str; 8]
pub fn wyrand_eff_shortlist_8words() -> [&'static str; 8]
Generate EFF short word list phrase 8
words long`
Sourcepub fn wyrand_eff_shortlist_12words() -> [&'static str; 12]
pub fn wyrand_eff_shortlist_12words() -> [&'static str; 12]
Generate EFF short word list phrase 12
words long`
Sourcepub fn wyrand_eff_shortlist_16words() -> [&'static str; 16]
pub fn wyrand_eff_shortlist_16words() -> [&'static str; 16]
Generate EFF short word list phrase 16
words long`
Sourcepub fn wyrand_eff_largelist() -> [&'static str; 4]
pub fn wyrand_eff_largelist() -> [&'static str; 4]
Generate EFF large word list phrase 4
words long`
Sourcepub fn wyrand_eff_largelist_6words() -> [&'static str; 6]
pub fn wyrand_eff_largelist_6words() -> [&'static str; 6]
Generate EFF large word list phrase 6
words long`
Sourcepub fn wyrand_eff_largelist_8words() -> [&'static str; 8]
pub fn wyrand_eff_largelist_8words() -> [&'static str; 8]
Generate EFF large word list phrase 8
words long`
Sourcepub fn wyrand_eff_largelist_12words() -> [&'static str; 12]
pub fn wyrand_eff_largelist_12words() -> [&'static str; 12]
Generate EFF large word list phrase 12
words long`
Sourcepub fn wyrand_eff_largelist_16words() -> [&'static str; 16]
pub fn wyrand_eff_largelist_16words() -> [&'static str; 16]
Generate EFF large word list phrase 16
words long`