uuidjs / uuid

Generate RFC-compliant UUIDs in JavaScript
MIT License
14.66k stars 903 forks source link

[question] is posible decode uuid to data back ? #740

Closed YovanggaAnandhika closed 11 months ago

YovanggaAnandhika commented 11 months ago

Feature description


import { v5 } from "uuid";

   v5(<isData>, <namespace>); /** -> 32ABF614-5646-5448-B514-EE0E3DB6F833 **/

now, is possible get back isData from 32abf614-5646-5448-b514-ee0e3db6f833 to isData ??

Additional information

No response

broofa commented 11 months ago

No, v5 uses a SHA-1 hash, which is not reversible. https://stackoverflow.com/questions/2235079/is-it-possible-to-reverse-a-sha-1-hash