rsa

<!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>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    </head>
    <script type="text/javascript" src="/js/jquery-1.4.2.min.js")"></script>
    <script type="text/javascript" src="/js/security.js"></script>
    <script type="text/javascript">
        function loginRSA() {
            var key = RSAUtils.getKeyPair('$empoent', '', '$module');
            var result = RSAUtils.encryptedString(key, document.getElementById("pwd").value);
            alert(result);
            document.loginForm.action = "/cms/rsa/login.action?result=" + result;
            document.loginForm.submit();
        }
    </script>
    <body>
        <form name="loginForm" method="post" focus="username">
            <table border="0">
                <tr>
                    <td>Login:$module</td>
                    <td>
                        <input type="text" name="username"/>
                    </td>
                </tr>
                <tr>
                    <td>Password:$empoent</td>
                    <td>
                        <input type="password" name="password" id="pwd"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="button" value="SUBMIT"                     </td>
                </tr>
            </table>
        </form>
    </body>
</html>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章