Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/discord/itsdangerous-rs
/ functions
Functions
111 in github.com/discord/itsdangerous-rs
⨍
Functions
111
◇
Types & classes
44
↓ 23 callers
Method
build
Builds a Signer using the configuration specified in this builder.
src/signer.rs:68
↓ 23 callers
Function
default_builder
Constructs a default signer builder, using the [`sha1`] digest, [`hmac`], and the [`django concat`] key derivation. [`django concat`]: crate::key_der
src/signer.rs:28
↓ 9 callers
Method
into_timestamp_signer
(self)
src/signer.rs:201
↓ 7 callers
Method
input_chained
(mut self, value: &[u8])
src/algorithm.rs:38
↓ 7 callers
Function
serializer_with_signer
( signer: TSigner, encoding: TEncoding, )
src/serde_serializer.rs:33
↓ 5 callers
Method
sign_with_timestamp
Signs a value with an arbitrary timestamp.
src/timed.rs:41
↓ 5 callers
Method
split
( &'a self, value: &'a str, )
src/timed.rs:20
↓ 4 callers
Method
as_slice
(&self)
src/base64.rs:61
↓ 4 callers
Function
deserialize
( value: &'a str, encoding: &Encoding, )
src/serde_serializer.rs:78
↓ 4 callers
Method
separator
(&self)
src/timed.rs:36
↓ 4 callers
Method
unsign
The inverse of [`sign`] / [`sign_with_timestamp`], returning an [`UnsignedValue`], which you can grab the value, timestamp, and assert the max age of
src/timed.rs:86
↓ 3 callers
Method
base64_encode_str
(self, target: &mut String)
src/algorithm.rs:133
↓ 3 callers
Function
decode
(input: &T)
src/base64.rs:76
↓ 3 callers
Method
sign
(&self, value: S)
src/signer.rs:150
↓ 3 callers
Method
sign
(&self, value: &T)
src/multi_serializer.rs:77
↓ 3 callers
Method
sign
(self)
src/algorithm.rs:68
↓ 3 callers
Function
timed_serializer_with_signer
( signer: TSigner, encoding: TEncoding, )
src/serde_serializer.rs:44
↓ 3 callers
Method
verify_encoded_signature
(&self, value: &[u8], encoded_signature: &[u8])
src/signer.rs:137
↓ 2 callers
Method
as_signer
(&self)
src/serde_serializer.rs:133
↓ 2 callers
Method
as_slice
(&self)
src/timestamp.rs:17
↓ 2 callers
Method
decode
(&self, encoded_input: String)
src/serde_serializer.rs:60
↓ 2 callers
Function
encode
(input: &T)
src/base64.rs:29
↓ 2 callers
Method
encode
(&self, serialized_input: String)
src/serde_serializer.rs:56
↓ 2 callers
Function
encode_slice
(input: &T, target: &mut [u8])
src/base64.rs:39
↓ 2 callers
Method
get_signature
Returns the signature for a given key + value.
src/traits.rs:66
↓ 2 callers
Method
get_signer
(&self)
src/signer.rs:187
↓ 2 callers
Method
sign
Signs a value using the current system timestamp (as provided by [`SystemTime::now`]).
src/timed.rs:70
↓ 2 callers
Method
sign
(&self, value: &T)
src/serde_serializer.rs:99
↓ 2 callers
Method
sign_with_timestamp
( &self, value: &T, timestamp: SystemTime, )
src/serde_serializer.rs:147
↓ 1 callers
Method
add_fallback
Adds a [`Serializer`] to as a fallback, that will be attempted to be used to unsign a value if the primary serializer fails to unsign a value. # Rema
src/multi_serializer.rs:59
↓ 1 callers
Method
as_str
(&self)
src/timestamp.rs:27
↓ 1 callers
Method
code
(self)
src/algorithm.rs:127
↓ 1 callers
Method
decode_signature
( &self, encoded_signature: &[u8], )
src/signer.rs:103
↓ 1 callers
Function
decode_str
(input: &T)
src/base64.rs:98
↓ 1 callers
Function
encode_str
(input: &T, target: &mut String)
src/base64.rs:48
↓ 1 callers
Function
in_alphabet
Returns whether or not a given character is in the base64 alphabet.
src/base64.rs:106
↓ 1 callers
Method
input
(&mut self, _value: &[u8])
src/algorithm.rs:63
↓ 1 callers
Method
into_exact_inner
(self)
src/base64.rs:65
↓ 1 callers
Method
length
(&self)
src/timestamp.rs:22
↓ 1 callers
Method
signature_output_size
(&self)
src/signer.rs:132
↓ 1 callers
Method
signer
(&self)
src/serde_serializer.rs:28
↓ 1 callers
Method
timestamp
The timestamp that the value was signed with. For conveniently unwrapping the value and enforcing a max age, consider using [`value_if_not_expired`].
src/serde_serializer.rs:194
↓ 1 callers
Method
unsign
(&'a self, value: &'a str)
src/signer.rs:166
↓ 1 callers
Method
unsign
(&'a self, value: &'a str)
src/serde_serializer.rs:105
↓ 1 callers
Method
unsign_to_string
(&'a self, value: &'a str)
src/serde_serializer.rs:116
↓ 1 callers
Method
value
The value that has been [`unsigned`]. This value is safe to use and was part of a payload that has been successfully [`unsigned`]. [`unsigned`]: Time
src/serde_serializer.rs:184
↓ 1 callers
Method
verify
(self, signer: &TSigner)
src/serde_serializer.rs:282
↓ 1 callers
Method
verify_signature
( &self, value: &[u8], expected_signature: Signature<Algorithm::OutputSize>, )
src/signer.rs:115
↓ 1 callers
Method
with_separator
Uses a specific separator with the signer. If no separator is defined, will default to '.'
src/signer.rs:62
Method
as_signer
(&self)
src/signer.rs:215
Method
as_signer
(&self)
src/timed.rs:102
Method
base64_encode
(self)
src/base64.rs:17
Function
bench_sign
(bench: &mut Bencher)
src/signer.rs:285
Function
bench_sign
(bench: &mut Bencher)
src/timed.rs:199
Function
bench_sign
(bench: &mut Bencher)
src/serde_serializer.rs:501
Function
bench_unsign
(bench: &mut Bencher)
src/signer.rs:279
Function
bench_unsign
(bench: &mut Bencher)
src/timed.rs:207
Function
bench_unsign
(bench: &mut Bencher)
src/serde_serializer.rs:510
Method
cause
(&self)
src/error.rs:92
Function
decode
(timestamp: &str)
src/timestamp.rs:61
Method
default
()
src/separator.rs:48
Method
deref
(&self)
src/serde_serializer.rs:217
Method
description
(&self)
src/error.rs:84
Function
encode
( timestamp: SystemTime, )
src/timestamp.rs:38
Method
encode
(input: GenericArray<u8, Self::InputSize>)
src/base64.rs:174
Method
eq
(&self, x: &Signature<N>)
src/algorithm.rs:139
Method
fmt
(&self, f: &mut fmt::Formatter)
src/error.rs:68
Method
from
(bad_signature: BadSignature<'a>)
src/error.rs:142
Method
from
(mac: MacResult<N>)
src/algorithm.rs:145
Method
from_str
( separator: Separator, encoding: TEncoding, input: &'a str, )
src/serde_serializer.rs:262
Function
gen_string
()
src/base64.rs:192
Method
get_signature
Returns the signature for a given key + value.
src/algorithm.rs:22
Method
get_signer
Returns a signer that can be used to build a signature for a given key + values.
src/algorithm.rs:17
Method
new
Constructs a new signer builder with a given secret key.
src/signer.rs:44
Method
new
Creates a new separator, checking to make sure it is valid. A valid separator is a character that is not in the base-64 url-safe alphabet.
src/separator.rs:27
Method
new
Constructs a new [`MultiSerializer`] with a given [`Serializer`] as the primary serializer. The primary serializer is the one that will be used to sig
src/multi_serializer.rs:44
Method
new
(_key: &[u8])
src/algorithm.rs:58
Method
output_size
()
src/base64.rs:181
Method
separator
(&self)
src/signer.rs:145
Method
split
(&self, value: &'a str)
src/separator.rs:36
Function
test_base64_sized_encoder
()
src/base64.rs:191
Function
test_default_separator
()
src/signer.rs:249
Function
test_hmac_algorithm
()
src/algorithm.rs:161
Function
test_multi_serializer
()
src/multi_serializer.rs:105
Function
test_non_default_separator
()
src/signer.rs:240
Function
test_none_algorithm
()
src/algorithm.rs:172
Function
test_null_encoding
()
src/serde_serializer.rs:361
Function
test_separator_rejects_invalid_char
()
src/signer.rs:254
Function
test_sign
()
src/timed.rs:156
Function
test_sign_expired
()
src/timed.rs:168
Function
test_sign_not_expired
()
src/timed.rs:179
Function
test_sign_null_encoding
()
src/serde_serializer.rs:378
Function
test_sign_url_safe_encoding
()
src/serde_serializer.rs:409
Function
test_signature_basic
()
src/signer.rs:226
Function
test_timed_sign_null_encoding
()
src/serde_serializer.rs:418
Function
test_timed_signer_impl_can_be_used_to_verify
()
src/serde_serializer.rs:477
Function
test_unsign_edge_cases
()
src/signer.rs:259
Function
test_unsign_unverified_bad_signature
()
src/serde_serializer.rs:398
Function
test_unsign_unverified_good_signature
()
src/serde_serializer.rs:387
Function
test_unverified_timed_good_signature
()
src/serde_serializer.rs:437
next →
1–100 of 111, ranked by callers