Skip to content

sha1 hashing & uuid algorithm that works at compile time

Notifications You must be signed in to change notification settings

WebFreak001/sha1ct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

sha1ct

Compile-Time sha1

import sha1ct;

enum hash = sha1Of(cast(ubyte[]) [0, 1, 2, 3]); // Binary Data
enum hash2 = sha1Of("Hello World"); // String
enum namespace = sha1UUID("my.app"); // generates a std.uuid.UUID from string or binary
enum uuid = sha1UUID("interface1", namespace); // also with namespaces

About

sha1 hashing & uuid algorithm that works at compile time

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages