Skip to content

Instantly share code, notes, and snippets.

View Dekkonot's full-sized avatar

Micah Dekkonot

View GitHub Profile
@Dekkonot
Dekkonot / sha1.lua
Last active October 13, 2023 02:07
Implementation of the SHA-1 hashing algorithm for Roblox
-- I claim no copyright over this source code and you can use it for whatever you want. Just don't sue me.
local ASSERTIONS_ENABLED = true -- Whether to run several checks when the module is first loaded and when a message is preprocessed.
local INIT_0 = 0x67452301
local INIT_1 = 0xEFCDAB89
local INIT_2 = 0x98BADCFE
local INIT_3 = 0x10325476
local INIT_4 = 0xC3D2E1F0