<font color="blue">This is a work in progress, the current plugin is broken.</font>
I've been working on turning a JS implementation of the MD5 algorithm into a plugin.
Basicly, it is an expression that allows you to encrypt the data you feed it with into hexadecimal MD5.
I've had a previous version that worked. (You might try it and use it if you want)
As the implementation of the algorithm has several output formats (hexa, base64 and even allows different types of encryption in the spectrum of the same functions use) I'm working on allowing the user to choose between them.
At the moment I'm stuck, as I've been adding properties to my object. And now, in the runtime, firebug tells me that "this.properties" isn't defined, blocking the whole process.
Well, it is in my edittime.js though.
(My test project is an object MD5 and an object text. On startup of layout, I set Text.text to MD5.Encrypt("Hello world !").)
I've used the structure/code from the plugin text to guide me. I've also looked in about all of the plugins code, and it seems to me they are all following the same pattern.
Right now, I can't seem to find what's wrong. I'll look over it later (and/or tommorrow) but if in the mean time the community can bring me an answer i'll be more than happy ^^
I'm still new to JS, and mainly learning it by going through C2's plugins and behaviors folders ^^ (looking a bit over jquery's documentation for future plugins too)
Edit: I'll favor the occasion to suggest an option in C2 that allows to reload/rehash the plugins and behaviors (if it is possible). As of now, on any change on my plugin, I have to quit and launch again the editor, and set up my test project (save/load can't really work as any change on the plugins makes old saves incompatible). Doable, but tedious. If it can be added harmlessly, I'll be thankful.