Comments (3)
Hash an entire enum
Could you elaborate this? What do you mean by hashing an enum?
from core.
A way to hash many strings at once.
@Hash()
enum Keys {
Test
}
const map = {
[Keys.Test]: 1
}
could compile to
const map = {
'asdasdasd-asdasdasdasd-asdasdasd-asdasd': 1
}
or something along those lines
Just any way to hash many things instead of calling hash
a lot.
from core.
I'm perhaps a bit late on this but I feel like all of the bulletins included in the original post have mostly been solved by Flamework's modding API.
Flamework.hash
doesn't directly support this, but theModding.Obfuscate
metadata does if you write your own user macro.- You can write your own user macro instead of
Flamework.hash
with however short of a name you want (minus the $ prefix)
The third one is a bit more nuanced but I don't think this is necessary with Flamework user macros and would probably be best implemented in a separate transformer like rbxts-transform-guid (although this one doesn't appear to preserve types which could cause issues with incremental compilation and typechecking errors)
With Flamework user macros, I think it'd be more idiomatic to automatically convert names into their hashed versions rather than having the user do so manually (like @flamework/networking
does.) Although, it's not currently possible to obfuscate property accesses (without intrinsics) but I intend to support that eventually.
I'm going to close this issue for the above reasons, but feel free to reopen it if you disagree.
from core.
Related Issues (20)
- "delete" keyword on Component attributes does not remove the attribute HOT 1
- offer @Decorator usage for events HOT 2
- Transformer option for automatic debug profiling HOT 2
- running npx rbxtsc -w results in a runInitalCompile error HOT 1
- Network batching HOT 2
- Flamework macros not working inside decorators HOT 1
- Allow us to configure obsfucation separately for networking and singletons/components HOT 2
- Disable networking client guards by default in production HOT 1
- Add double quotes to typeRoots
- Ability to create unreliable remote events HOT 1
- support bun HOT 1
- Write to `component.attributes` before firing `onAttributeChanged` signals
- Option to not obfuscate internal ids for server files
- Compiled output is nonsensical HOT 1
- Macro nesting doesn't work if done between class methods
- Add a cleanup function for components, for when they are removed HOT 1
- Modding.Generic<T, "guard"> fails to pass nominal types due to intersection with primitives
- MacroManager could not find method for Vector2.idiv HOT 1
- Incorrect documentation for `ignite`
- More extensive way to enable verbose logging. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.