I'm fairly sure using uuidgen to generate a value for <id> is the recommended way, but I was looking at Michael's Phishin plugin and it also has an <id2> tag that looks like maybe a sha384sum of ... something? I tried sha384sum of the id value but it doesn't match. Is the id2 tag needed or recommended and if so, how do I generate it?
Results 1 to 4 of 4
Thread: Plugin install.xml id2 tag
-
2021-04-18, 04:24 #1
- Join Date
- Jul 2008
- Posts
- 357
Plugin install.xml id2 tag
-
2021-04-23, 21:39 #2
Plugin install.xml id2 tag
The ID value needs to be a unique value. Usin a UUID is the best way to
get this kind of uniqness.
-
2021-04-25, 14:49 #3
- Join Date
- Jul 2008
- Posts
- 357
Thanks for the reply Michael, I missed it until now. I used uuidgen for <id> so that's good but I was asking about an <id2> tag I noticed in one of your plugins and wasn't sure how to generate that one as the format is different than what uuidgen produces, looks like a hash of something. I don't think it's really needed?
-
2021-04-25, 21:11 #4
Plugin install.xml id2 tag
> I don't think it's really needed?
No, it's not needed. I think only very few fields like id, name, module,
version are really needed. A plugin can put basically anything in there,
like eg. the often used icon field: it's not required, but the plugin
can read it from the file to show a custom icon.