#uuid #blob #base64

blob-uuid

Converts Uuid to a url friendly 22 character string blob

9 unstable releases

0.5.0 Apr 28, 2022
0.4.0 Oct 24, 2019
0.3.1 May 28, 2019
0.3.0 Nov 12, 2018
0.1.1 Nov 8, 2016

#1776 in Encoding

Download history 743/week @ 2024-01-09 595/week @ 2024-01-16 560/week @ 2024-01-23 332/week @ 2024-01-30 562/week @ 2024-02-06 648/week @ 2024-02-13 536/week @ 2024-02-20 554/week @ 2024-02-27 570/week @ 2024-03-05 1174/week @ 2024-03-12 952/week @ 2024-03-19 600/week @ 2024-03-26 822/week @ 2024-04-02 666/week @ 2024-04-09 547/week @ 2024-04-16 456/week @ 2024-04-23

2,598 downloads per month
Used in 8 crates (3 directly)

MIT license

6KB

Convert Uuid to a url friendly 22 character string blob

This is useful for url links to a unique record, and is shorter than the 36 character stringified uuid.

Example usage


   let uuid = Uuid::parse_str("557c8018-5e21-4b74-8bb0-9040e2e8ead1").unwrap();
   assert_eq!("VXyAGF4hS3SLsJBA4ujq0Q", blob_uuid::to_blob(uuid));

Example conversions:

uuid blob
8ef65ee9-a039-4bf2-a4b3-687fcc1f3cc3 jvZe6aA5S_Kks2h_zB88ww
c38ba949-491b-417d-b488-aa4748c13a00 w4upSUkbQX20iKpHSME6AA
d1504e8e-dff6-4b9b-a0b1-50c447b5d1a4 0VBOjt_2S5ugsVDER7XRpA
8f5159c4-0438-45f1-a7e1-f30c84258082 j1FZxAQ4RfGn4fMMhCWAgg
6aaf25bd-7d59-4331-87a1-4ddacf6aa52c aq8lvX1ZQzGHoU3az2qlLA
95af4181-bbbc-4b0c-9d9a-c14fa0a18c65 la9Bgbu8SwydmsFPoKGMZQ
2a317215-53fd-45de-95e9-f74c16a13b6a KjFyFVP9Rd6V6fdMFqE7ag
8d2c25e2-73d6-4f4a-820a-f671c0991398 jSwl4nPWT0qCCvZxwJkTmA
55458e6b-fcce-446e-884f-ca61a8fd7e9d VUWOa_zORG6IT8phqP1-nQ

Using the cli

cargo install blob-uuid-cli

blob-uuid 8ef65ee9-a039-4bf2-a4b3-687fcc1f3cc3
jvZe6aA5S_Kks2h_zB88ww

Calling blob-uuid without argument will generate a return a blob from a generated uuid

Dependencies

~445KB