23.12.2009, 02:09 | #1 (permalink) |
Новичок
Регистрация: 23.12.2009
Сообщений: 1
Сказал(а) спасибо: 0
Поблагодарили 0 раз(а) в 0 сообщениях
Репутация: 10
|
Помогите написать работу
Программа должна использовать криптографическую библиотеку open SSL. Шифр DES или 3DES или AES. Программа Шифрует или расшифровывает текст используя a) CBC chaining mode; b) either CFB or OFB chaining mode Нужно на Delphi 7. Я вроде программировать умею, но пока немогу понять как это использовать. Там требования что, " you must implement the chaining and the special processing of the last block(s) by yourself. In other words, you may only use a function that takes one block as input, performs regular encryption, and returns the encrypted block. " For CFB or OFB mode you should use a random initialization vector for each encryption. As a result, your ciphertext will be longer than plaintext; however you still must deal with the possibility that the input may not be an even multiple of the block length. For CBC mode it is required that the length of the output must be the same as the length of the input. Hence, you must deal with the possibility that the input may not be an even multiple of the block length, and you must implement a method of some sort to deal with this problem. (However, you can assume that the length of the input will be at least the size of one block.) As a consequence, you should assume that initialization vector is constant for all encryptions (e.g. all bits are zeroes). Вроде как просто использовать готовые функции нельзя ? Или как это делать. Помогите кто чем может. На Delphi я такого некогда не писал, я сам программист под PL/SQL Oracle. (купить решение не могу - нищий как церковная крыса, кризис) |
23.12.2009, 02:09 | |
Helpmaster
Member
Регистрация: 08.03.2016
Сообщений: 0
|
Пожалуйста, ознакомьтесь с информацией по этим ссылкам Помогите найти работу Помогите написать программу |
Ads | |
Member
Регистрация: 31.10.2006
Сообщений: 40200
Записей в дневнике: 0
Сказал(а) спасибо: 0
Поблагодарили 0 раз(а) в 0 сообщениях
Репутация: 55070
|
|
|