例如,一些公司希望批准每个在站点注册的员工,而其它公司可能更需要自服务的流程,每个员工必须知道公司代码或密码才能注册。
For example, some companies want to approve every employee who registers on the site, while others prefer a self-service process where each employee must know a company code or password to register.
通过适当的说服工作,增加身份验证方案的安全性可以像对当前密码输入代码应用控制算法一样简单。
With the appropriate persuasion, increasing the security of your authentication schemes can be as easy as applying these control algorithms to your current password entry code.
重要的是,如果早期生命以如上所述的方式开始,细胞的使用DNA,RNA和蛋白质代码的“达尔文过渡”,必须在某个时候通过遗传密码发生。
Third, and massively important, if early life started as sketched above, a “Darwinian transition” to cells that use DNA, RNA and code for proteins via a genetic code must take place at some point.
下面的代码示例(来自示例客户端应用程序)需要用户以允许删除客户的HTML形式提供用户名和密码。
The code sample below, from the sample client application, requires the user to provide a username and password in the HTML form that allows a customer to be deleted.
比如,为屏幕保护程序设置解锁代码并在接近电脑的时候吹一下口哨——再无需烦人的密码键入操作。
Set up an unlock code for your screensaver and whistle as you approach your desk — no more bothersome password typing.
注意,帐户的用户名和密码在代码中从未用过。
Note that the account's username and password are never used in the code.
随后,将介绍如何对密码进行编码,来避免其以明文形式在代码中出现。
Later, you'll see how to encode the password so that it doesn't appear in plain text in your code.
不过我们真正希望的是自己的朋友也可以使用密码解锁代码来解除屏保。
What we really want to do, though, is impress our friends with the secret unlocking code to disable the screensaver.
下列代码的第一部分将展示一个简单的密码输入和确认程序,它将计算输入密码的完整时间。
The first section of code below shows how to set up a simple password entry and confirmation program that takes into account the full timing of password entry.
要确保代码正常工作且获得的不是一个误报,在代码内更改密码或更改这个INI文件并再次运行此示例。
To make sure that the code is working properly and that you aren't getting a false positive, change either the password in the code or the INI file and run the example again.
如果运行BasicAuthentication,就意味着提示用户输入用户名和密码,HTML代码会提交在两个预定义的表单字段中输入的凭证。
If running Basic Authentication, that means a user is prompted to enter username and password, the HTML code will submit the credentials entered in two predefined FORM fields.
示例代码依赖于把用户名和密码传递给JDBC驱动程序,而且只有在使用这些凭证成功地建立DB连接的情况下,才会颁发visa。
The sample code relies on passing user name and password to the JDBC driver and only if those credentials are successfully used to establish a DB connection the visa will be issued.
选中delegate角色,并输入映射到委托角色的用户代码和密码。
Check the delegate role, and enter the user code and password mapped to the delegate role.
该代码通常会将任何登录到此web站点的用户的ID及密码信息传递到攻击者的Web站点。
This code basically passes the user ID and password information of any user logging into the Web site along to the Web site of the attacker.
本节中的样例keytool命令使用了与附带的示例代码相同的文件名和密码。
The sample keytool command lines in this section use the same file names and passwords as in the supplied example code.
输入具有manager角色的用户代码及密码(图9)。
Enter the user code with the manager role and its password (Figure 9).
既然已经创建了JSP,现在就让我们在Portlet中编写代码以验证用户ID和密码,并显示适当的消息。
Now that we've created the JSP, we'll write the code in the portlet to validate the user id and password and display the appropriate message.
列表12代码片段建立了一个oConnectionInfos对象,使用您的用户名和密码初始化了这个对象,然后将其设置在会话范围中。
The Listing 12 code snippet creates an oConnectionInfos object, initializes it with your username and password values, and then sets it in session scope.
此代码将tomcat用户密码为“tomcat”角色分配为manager和admin组的成员。
This code assigns the tomcat user (with password 'tomcat') roles as part of the manager and admin groups.
注意:我使用ApacheDirectoryStudio来将用户的密码更改为一个能放入测试代码以确保它工作的值。
Note: I used Apache Directory Studio to change the user's password to a value that I could put into the test code to make sure it worked.
输入具有manager角色的用户代码及密码。
我要做的只是了解如何使用ActiveDirectoryServer检查用户名和密码,创建一个类来扩展这个接口,并添加执行身份验证的代码。
All I had to do was find out how to check the username and password using Active Directory Server, create a class to extend this interface, and add the code to perform the authentication.
当然还需要更新帐户名称和密码,注意这些代码和环境描述均为使用Gmail 帐户处理邮件。
You'll need to update the account name and password sections, of course. Note that this code and environment description focuses on using a Gmail account for mail processing.
在代码执行之前,你必须输入你自己的用户名,密码。
To get the demo code running, you need to enter your own credentials for username and password in the following line.
打开txtcommon.c,修改下面这一行代码,使之包括用户ID和密码。
Open txtcommon.c and modify the following line to include your user ID and password.
清单4显示为对一个用户的项目目录进行密码检查向httpd . conf增加的代码,而不是将其放入一个. htaccess文件并依赖于AllowOverrides。
Listing 4 shows the additions to httpd.conf to enable password checking for a user's project directory, rather than putting in a.htaccess file and relying on AllowOverrides.
代码中将用户名和密码存储在MQCSP结构中,并在调用时将指向此结构的指针psecurityparms传递给该函数。
The username and password are stored in a MQCSP structure, and a pointer to this structure, pSecurityParms, is passed into the function when it is called.
现在,为了创建BlogPost对象,使用清单2 中的代码提供用户名、密码、URL和blogID。
Now, to create a BlogPost object, supply the username, password, URL and blog ID using Listing 2.
通常,第一个dataSource代码段是定义诸如驱动程序类、用户名、密码之类的jdbc属性的位置。
Normally, the first dataSource block is where we define JDBC properties, like driver class, username, password, etc.
aspx包含用于将用户输入的密码与SecureUsers表中所存储密码的 salt 强化哈希版本比较的代码(参见图7)。
BestLogin.aspx contains code that compares the user-entered password with a salted hashed version of the password stored in the SecureUsers table (see Figure 7 ).
应用推荐