Go Back   FlashFXP Forums > > > >

Suggestions Post suggestions for upcoming versions

 
 
Thread Tools Display Modes
Old 01-08-2003, 10:02 AM   #1
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default Transfer encryption

Aah, Yes.. I finally had time to write that blowfish encryption for ftp (on win32), which allows secure transfers at very high speeds. (fxp is possible as well)

As I had performance in priority #1 when designing this algorithm, I decided to use two different encryption methods:
1. BF_cbc_encrypt(), which encrypts data in 8byte blocks - used to encrypt/decrypt most of transfer.
2. BF_cfc64_encrypt(), encrypts 1byte at time - used to encrypt/decrypt block at the end of file, if it isn't dividable by 8.

Performance comparison for uploads:
RAW: 50mb/sec (Peak)
BF: 40mb/sec
Downloads:
RAW: 45mb/sec
BF: 45mb/sec


Raw:

ftp> get GAME.REZ nul
200 PORT command successful.
150 Opening BINARY mode data connection for GAME.REZ.
226 [PWD: /pub/games/No One Lives Forever 2/ ]-[Section: Default]-[Credits: -2209.4M]-[Ratio: Unlimited]-[Speed: 43113.7kb/s]
ftp: 224475015 bytes received in 5,09Seconds 44127,19Kbytes/sec.

Blowfish (1 byte key, in secret key algorithms key size doesn't have anything to do with encryption speed):

ftp> quote bfk 1,1
200 Blowfish key set.
ftp> get GAME.REZ nul
200 PORT command successful.
150 Opening BINARY mode data connection for GAME.REZ.
226 [PWD: /pub/games/No One Lives Forever 2/ ]-[Section: Default]-[Credits: -2209.4M]-[Ratio: Unlimited]-[Speed: 43740.1kb/s]
ftp: 224475015 bytes received in 5,01Seconds 44832,24Kbytes/sec.

Valid blowfish implementation must use TLS or SSL control connection as base - secret keys are transfered as plain text via this channel.

I will post documented C examples for non-blocking reading & writing, and better documentation later this week. (Full daemon implementation in C took less than 230lines of commented code & it was done in 7hours).

Any Questions/Comments?
darkone is offline  
Old 01-08-2003, 02:05 PM   #2
MxxCon
Super Duper
FlashFXP Beta Tester
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,881
Default

what ftpd support this?
and just fyi, in case you didn't know, FlashFXP is written in delphi, so if you implied that FlashFXP can use that code it won't work
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline  
Old 01-09-2003, 02:21 AM   #3
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Code is very simple.. I'm sure it's nothing these guys couldn't handle.
darkone is offline  
Old 01-09-2003, 02:22 AM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

I dont want to advertise my daemon here, try google with my nickname as search parameter
darkone is offline  
Old 01-09-2003, 04:10 AM   #5
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

http://www.ioftpd.com/~darkone/drafts/FTP-Blowfish.txt

I didn't have time to unoptimise it.. aah, yes you guys have my permission to use it
darkone is offline  
 

Tags
blowfish, encryption, ftp, game.rez, key

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:46 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)