This bug is quite weird and I don’t fully understand exactly whats happening but from my understanding after update version 678 where codegen fast import was updated functions like string.format and even print return complete gibberish. Recently the SHA2-384 algorithm started failing every test and after localizing string.format eg local Format = string.format all tests pass
Now another issue thats come up at the same time is functions failing to compile to native when there is too many arguments.
As seen here, print also is returning complete gibberish
Reproduction Code:
SHA2-384:
--[=[
Cryptography library: SHA384
Return type: string
Example usage:
local Message = buffer.fromstring("Hello World")
--------Usage Case 1--------
local Result = SHA384(Message)
--------Usage Case 2--------
local OptionalSalt = buffer.fromstring("Salty")
local Result = SHA384(Message, OptionalSalt)
--]=]
--!native
--!optimize 2
--!strict
local FRONT_VALUES = buffer.create(32)
This file has been truncated. show original
SHA2-512:
--[=[
Cryptography library: SHA512
Return type: string
Example usage:
local Message = buffer.fromstring("Hello World")
--------Usage Case 1--------
local Result = SHA512(Message)
--------Usage Case 2--------
local OptionalSalt = buffer.fromstring("Salty")
local Result = SHA512(Message, OptionalSalt)
--]=]
--!native
--!optimize 2
--!strict
local FRONT_VALUES = buffer.create(32)
This file has been truncated. show original
And as for the tests used that caught the issue you can find them here: rbx-cryptography/tests at main · daily3014/rbx-cryptography · GitHub
Expected behavior
I expect to be able to use functions like string.format without needing to make them local for them to function properly.
1 Like
WheretIB
(WheretIB)
July 2, 2025, 4:27pm
2
Thank you for the report.
We were able to reproduce the issue and will investigate the cause.
2 Likes
Thanks for the quick reply, let me know if you need anything else!
2 Likes
WheretIB
(WheretIB)
July 2, 2025, 5:44pm
4
The change causing the issue has been disabled.
Sorry for the inconvenience caused by it.
2 Likes
Awesome everything is working! Thanks
1 Like
system
(system)
Closed
July 16, 2025, 5:46pm
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.