| skipped 149 lines |
150 | 150 | | output.blur(); |
151 | 151 | | } |
152 | 152 | | |
| 153 | + | |
| 154 | + | // Activated when a user tries to disable randomization of the IV -- adds a |
| 155 | + | // scary warning that will frighten off anyone with common sense, unless they |
| 156 | + | // desperately need the URL to be a few characters shorter. |
| 157 | + | function onIvCheck(checkbox) { |
| 158 | + | if (!checkbox.checked) { |
| 159 | + | checkbox.checked = !confirm("Please only disable initialization vector " |
| 160 | + | + "randomization if you know what you are doing. Disabling this is " |
| 161 | + | + "detrimental to the security of your encrypted link, and it only " |
| 162 | + | + "saves 20-25 characters in the URL length.\n\nPress \"Cancel\" unless " |
| 163 | + | + "you are very sure you know what you are doing."); |
| 164 | + | } |
| 165 | + | } |
| 166 | + | |