orph3usLyre / muddy-waters

A static string obfuscation library for rust projects
Apache License 2.0
73 stars 3 forks source link

stabilize API for different obfuscation modes #16

Open orph3usLyre opened 7 months ago

orph3usLyre commented 7 months ago

context

todo:

1) I would like to stabilize the API of the different library "modes" since I'm not currently happy with the muddy_init("embed") / muddy_init!("env") solution. Additionally, setting a user's custom env variable identifier is not extremely clear. 2) I would also like to begin thinking about if this library should offer different types of encryption. Currently, we use the ChaCha20-Poly1305 cipher implementation. Should this library offer other encryption methods for its strings or simply an opinionated decision of the cipher that should be used? Is it even useful to have other types of encryption?

xuxiaocheng0201 commented 1 month ago

I would also like to begin thinking about if this library should offer different types of encryption. Currently, we use the ChaCha20-Poly1305 cipher implementation.

In my personal implementation, I use base64 with random alphabet character sets. It's more simple and fast.