Last modified: 2014-02-16 04:07:28 UTC
If we were to store QuestyCaptcha questions and answers in an automatically encrypted page, whose plaintext is viewable only by sysops, then we could use the revision history system to store old copies of it, and changes would not require edits to LocalSettings.php. The content to be saved to the page should be encrypted by, e.g., a [[mw:Manual:Hooks/PageContentSave]] function. [[mw:Manual:Hooks/ParserBeforeStrip]] could be used to display to the sysop a decrypted version of it. It would also be necessary to put that decrypted text in sysops' edit windows when they edit; I haven't tried to figure out yet what hook that would be. Encryption keys could be stored in, say, [[mw:Manual:page_props]] or maybe [[mw:Manual:user_properties]] or [[mw:Manual:config table]].
I think bug 34911 is a better idea.
(In reply to Kunal Mehta (Legoktm) from comment #1) > I think bug 34911 is a better idea. A number of different proposals are presented by the commenters there; which do you favor? Of course, if the config database gets implemented, then this is kinda moot, but I'm not sure how far off that is.
The code in [[mw:Extension:InterwikiMap]] for parsing and using the contents of the MediaWiki:Interwiki-whitelist might provide inspiration for how to do something similar with the page of questions and answers. Also, some code from [[mw:Extension:ROT13]] might be used, although a stronger encryption algorithm would be needed.