docs.rs failed to build rusty_paserk-0.4.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
rusty_paserk-0.3.0
rusty_paserk
An extension of rusty_paseto
adding the Platform Agnostic Serializable Keys specifications on top.
Examples
Local Wrapping
use ;
use ;
let wrapping_key = from;
let local_key = from;
let nonce = try_new_random.unwrap;
let wrapped_local = wrap_local;
// => "k4.local-wrap.pie.RcAvOxHI0H-0uMsIl6KGcplH_tDlOhW1omFwXltZCiynHeRNH0hmn28AkN516h3WHuAReH3CvQ2SZ6mevnTquPETSd3XnlcbRWACT5GLWcus3BsD4IFWm9wFZgNF7C_E"
let mut wrapped_local = wrapped_local.into_bytes;
let local_key2 = unwrap_local.unwrap;
assert_eq!;
Secret Wrapping
use ;
use ;
let wrapping_key = from;
let secret_key = try_new_random.unwrap;
let secret_key = from;
let nonce = try_new_random.unwrap;
let wrapped_secret = wrap_secret;
// => "k4.secret-wrap.pie.cTTnZwzBA3AKBugQCzmctv5R9CjyPOlelG9SLZrhupDwk6vYx-3UQFCZ7x4d57KU4K4U1qJeFP6ELzkMJ0s8qHt0hsQkW14Ni6TJ89MRzEqglUgI6hJD-EF2E9kIFO5YuC5MHwXN7Wi_vG1S3L-OoTjZgT_ZJ__8T7SJhvYLodo"
let mut wrapped_secret = wrapped_secret.into_bytes;
let secret_key2 = unwrap_secret.unwrap;
assert_eq!;
Local IDs
use EncodeId;
use ;
let local_key = from;
let kid = local_key.encode_id;
// => "k4.lid.XxPub51WIAEmbVTmrs-lFoFodxTSKk8RuYEJk3gl-DYB"
Secret IDs
use EncodeId;
use ;
let secret_key = try_new_random.unwrap;
let secret_key = from;
let kid = secret_key.encode_id;
// => "k4.sid.p26RNihDPsk2QbglGMTmwMMqLYyeLY25UOQZXQDXwn61"
Public IDs
use EncodeId;
use ;
let public_key = try_new_random.unwrap;
let public_key = from;
let kid = public_key.encode_id;
// => "k4.pid.yMgldRRLHBLkhmcp8NG8yZrtyldbYoAjQWPv_Ma1rzRu"