58 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| <head>
 | |
|     <meta charset="utf-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|     <title>Data Unwrap Form</title>
 | |
|     <style>
 | |
|         textarea { width: 100%; max-width: 500px; }
 | |
|         table { border-collapse: collapse; }
 | |
|         hr { margin: 15px 0; }
 | |
|     </style>
 | |
| </head>
 | |
| <body>
 | |
| <table>
 | |
|     <!-- Форма для wrap/unwrap текста -->
 | |
|     <tr><td>
 | |
|         <form method="post" action="{{.URL}}/wrap">
 | |
|             <table>
 | |
|                 <tr><td>Введите текст или токен:</td></tr>
 | |
|                 <tr><td>
 | |
|                     <textarea name="input_token" cols="50" rows="10" maxlength="{{.MAXTEXTLENGTH}}">{{.TEXT}}</textarea>
 | |
|                 </td></tr>
 | |
|                 <tr><td align="right">
 | |
|                     <button type="submit">Зашифровать</button>
 | |
|                     <button type="submit" formaction="{{.URL}}/unwrap">Расшифровать</button>
 | |
|                 </td></tr>
 | |
|             </table>
 | |
|         </form>
 | |
|     </td></tr>
 | |
| 
 | |
|     <tr><td><hr></td></tr>
 | |
| 
 | |
|     <!-- Отдельная форма для загрузки файла -->
 | |
|     <tr><td>
 | |
|         <form method="post" action="{{.URL}}/wrapfile" enctype="multipart/form-data">
 | |
|             <input type="file" name="file" id="file" required>
 | |
|             <button type="submit">Зашифровать файл</button>
 | |
|         </form>
 | |
|     </td></tr>
 | |
| 
 | |
|     <tr><td><hr></td></tr>
 | |
| 
 | |
|     <!-- Форма для генерации пароля -->
 | |
|     <tr><td>
 | |
|         <form method="post" action="{{.URL}}/genpassword">
 | |
|             <table>
 | |
|                 <tr><td align="right">
 | |
|                     Длина пароля (от 15 до {{.MAXTEXTLENGTH}}):
 | |
|                     <input type="number" name="passlength" min="15" max="{{.MAXTEXTLENGTH}}" value="32">
 | |
|                     <button type="submit">Сгенерировать пароль</button>
 | |
|                 </td></tr>
 | |
|             </table>
 | |
|         </form>
 | |
|     </td></tr>
 | |
| </table>
 | |
| </body>
 | |
| </html>
 | 
