Docs.rs
smartpasslib-4.0.0
smartpasslib 4.0.0
Permalink
Docs.rs crate page
BSD-3-Clause
25 August 2026
Links
Repository
crates.io
Source
Owners
smartlegionlab
Dependencies
hex ^0.4
normal
rand ^0.8
normal
serde ^1.0
normal
serde_json ^1.0
normal
sha2 ^0.10
normal
thiserror ^2.0
normal
criterion ^0.5
dev
tempfile ^3.0
dev
Versions
91.3%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
generate_code
smartpasslib
4.0.0
In smartpasslib::
core
smartpasslib
::
core
Function
generate_
code
Copy item path
Source
pub fn generate_code(length:
usize
) ->
Result
<
String
>
Expand description
Generate authentication code (for 2FA).