Server IP : 103.6.199.200 / Your IP : 3.144.2.5 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/tradepan/youth.trade-panel.com/wwwroot/ |
Upload File : |
<%@ page language="C#" autoeventwireup="true" inherits="test232, App_Web_7mrvpukg" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.6.2.js"></script> <script> var crypto = require('crypto'); // Used node module var btoa = require('btoa'); // Used node module function encryptMessage(text,key){ var secret = crypto.randomBytes(16); var secretKey = crypto.createHash('md5').update(key).digest(); // encrypt key into md5 var cipher = crypto.createCipheriv("aes-128-cbc", secretKey, secret); cipher.setAutoPadding(false); var ciphertext = cipher.update(text); const bufA = Buffer.concat([secret, ciphertext]); return btoa(bufA); } function CopyName() { var name = crypto.randomBytes(16); $("#<%=txtCopyName.ClientID%>").val(name); //set value return false; } function CopyName4() { var name = encryptMessage("77278f00d3316fad097e19c2f1a18fa47daafdd6aeabb130ec16d4c2ef4b554f","testingkey"); $("#<%=txtCopyName.ClientID%>").val(name); //set value return false; } function CopyName2() { var name = $("#<%=txtName.ClientID%>").val(); //get value $("#<%=txtCopyName.ClientID%>").val(name); //set value return false; } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:TextBox ID="txtName" runat="server" /> <asp:TextBox ID="txtCopyName" runat="server"/> <asp:button ID="btnCopyName" runat="server" Text="Copy" OnClientClick="javascript:CopyName();return false;"/> </div> </form> </body> </html>