当前位置:环保气象安全技能考试题库>注册环保工程师(专业知识)题库

问题:

[单选]

为应用程序开发人员上班 Certkiller.com。
您正在开发一种新的方法,必须对机密数据进行加密。
该方法必须使用数据加密标准 (DES) 算法。您新的方法将这些参数:
1.一个字节数组,命名,必须通过应用的 DES 算法加密的消息。
2.一把钥匙,指定的键,将用于对数据进行加密。
3.初始化向量,名为第四。
一旦数据加密的它必须添加到 MemoryStream 对象。
选择将加密指定的数据并将其添加到 MemoryStream 对象的代码段。()

A .
B .
C .
D .

用人单位与劳动者建立全日制劳动关系,应当订立()。 书面劳动合同。 固定期限劳动合同。 无固定期限劳动合同。 以完成一定任务为期限的劳动合同。 You need to write a code segment that transfers the first 80 bytes from a stream variable named stream1 into a new byte array named byteArray. You also need to ensure that the code segment assigns the number of bytes that are transferred to an integer variable named bytesTransferred. Which code segment should you use?()   A。 B。 C。 D。 Your application must access data that is located on two SQL Server 2005 computers. One of these servers is named SQL1 and the other is SQL2. You have permissions to create a stored procedure on SQL1 to support your application. However,on SQL2 you only have permissions to select data. You write the stored procedure on SQL1. The stored procedure accesses SQL2 by using the OPENQUERY Transact-SQL statement. However,the query fails when executed.You need to troubleshoot the cause of the error. What should you do?() Join the two servers by using the four-part syntax of server.database.schema.table.。 Reference SQL2 by using an alias.。 Add SQL2 as a remote server to SQL1.。 Add SQL2 as a linked server to SQL1.。 排水器()至少巡检一次,并做好记录,发现问题及时处理。 每班。 每月。 每季度。 每半年。 某公司2000年初投资6000万元,建造一条生产线,该生产线于2003年初完工并投入使用。预计2003年、2004年、2005年年末该条生产线可创造收益额各年分别为3000万元、2500万元、2000万元。复利年利率为8%。 按复利计算投资额2002年年末的终值。  

为应用程序开发人员上班 Certkiller.com。
您正在开发一种新的方法,必须对机密数据进行加密。
该方法必须使用数据加密标准 (DES) 算法。您新的方法将这些参数:
1.一个字节数组,命名,必须通过应用的 DES 算法加密的消息。
2.一把钥匙,指定的键,将用于对数据进行加密。
3.初始化向量,名为第四。
一旦数据加密的它必须添加到 MemoryStream 对象。
选择将加密指定的数据并将其添加到 MemoryStream 对象的代码段。()

参考答案:

  参考解析

使用DesCryptoServiceProvider来创建新的加密器。创建加密直接到MemoryStream,调用write()方法来执行加密的CryptoStream。 使用块大小设置为整个邮件的大小 B创建加密器而不是的解码器。 C不正确初始化加密器的密钥和iv。

相关题目:

在线 客服