473,413 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Secure File Transfer

hi to all,
i'm planning to make a way to transfer file with python.
I would like to make the transfer using some crypto api,
to make the channel secure.
i don't want to write a wrapper to ftp or to scp i just
want to make a new protocol, for a little application.

i took a quick look to some cryptographic modules available
in python (expecially pycrypto, gnupginterface, m2crypto)
and i'm now stuck on which one of these to choose.

Here's what i have in my mind: Alice wants to upload/download
some files from Bob.
Both of them have the public key (made with gpg), so in the
handshaking for the shared key is done using gpg.

After that the shared key is know to both the end of the channel
and they can use it to send the data.

i don't know what protocol (AES 3DES Blowfish? ) to use for the
transfer and i don't know if it could be better to implement
it directly with DSA/RSA rather than using GPG + somesymmetricprotocol

any suggestion hints example ?
Someone tried something like that ?

i'm using SocketServer for the network stuff so i would like to find
something wich can better suit with it
Many thanks for all the suggestion you can give me .
Samuele

Jul 18 '05 #1
5 5543

"Glauco" <00*********@fastwebnet.it> wrote in message
news:KK******************@tornado.fastwebnet.it...
hi to all,
i'm planning to make a way to transfer file with python.
I would like to make the transfer using some crypto api,
to make the channel secure.
i don't want to write a wrapper to ftp or to scp i just
want to make a new protocol, for a little application.

i took a quick look to some cryptographic modules available
in python (expecially pycrypto, gnupginterface, m2crypto)
and i'm now stuck on which one of these to choose.

Here's what i have in my mind: Alice wants to upload/download
some files from Bob.
Both of them have the public key (made with gpg), so in the
handshaking for the shared key is done using gpg.

After that the shared key is know to both the end of the channel
and they can use it to send the data.

i don't know what protocol (AES 3DES Blowfish? ) to use for the
transfer and i don't know if it could be better to implement
it directly with DSA/RSA rather than using GPG + somesymmetricprotocol

any suggestion hints example ?
Someone tried something like that ?

i'm using SocketServer for the network stuff so i would like to find
something wich can better suit with it
Many thanks for all the suggestion you can give me .
Samuele


You could try PyOpenSSL for encryption over networks or the internet. See
http://pyopenssl.sourceforge.net/.
Jul 18 '05 #2
Check out twisted.conch (www.twistedmatrix.com)

Even if you're determined to reinvent a wheel (I understand, it's fun
sometimes), you might find twisted more useful than SocketServer.

Glauco <00*********@fastwebnet.it> wrote in message news:<KK******************@tornado.fastwebnet.it>. ..
hi to all,
i'm planning to make a way to transfer file with python.
I would like to make the transfer using some crypto api,
to make the channel secure.
i don't want to write a wrapper to ftp or to scp i just
want to make a new protocol, for a little application.

i took a quick look to some cryptographic modules available
in python (expecially pycrypto, gnupginterface, m2crypto)
and i'm now stuck on which one of these to choose.

Here's what i have in my mind: Alice wants to upload/download
some files from Bob.
Both of them have the public key (made with gpg), so in the
handshaking for the shared key is done using gpg.

After that the shared key is know to both the end of the channel
and they can use it to send the data.

i don't know what protocol (AES 3DES Blowfish? ) to use for the
transfer and i don't know if it could be better to implement
it directly with DSA/RSA rather than using GPG + somesymmetricprotocol

any suggestion hints example ?
Someone tried something like that ?

i'm using SocketServer for the network stuff so i would like to find
something wich can better suit with it
Many thanks for all the suggestion you can give me .
Samuele

Jul 18 '05 #3
According to Lonnie Princehouse <fn***@u.washington.edu>:
Check out twisted.conch (www.twistedmatrix.com)

Even if you're determined to reinvent a wheel (I understand, it's fun
sometimes), you might find twisted more useful than SocketServer.


I suggest OP to write an FTP/TLS client and server for Twisted. Afterwards
we can compare that with my asyncore-based ones that is bundled with
M2Crypto.

I've been meaning to do this myself in my copious spare time.
--
Ng Pheng Siong <ng**@netmemetic.com>

http://firewall.rulemaker.net -+- Firewall Version Control
http://sandbox.rulemaker.net/ngps -+- ZServerSSL/Zope Windows Installers
Jul 18 '05 #4
hi,
glauco forwarded the message to the newsgroup due to some problem
to my network access, but now it seems i'm able, so i'm replying by
myself :-).

On 2004-06-16, Lonnie Princehouse <fn***@u.washington.edu> wrote:
Check out twisted.conch (www.twistedmatrix.com) ops i almost forgot it, thanks !
Even if you're determined to reinvent a wheel (I understand, it's fun
sometimes), you might find twisted more useful than SocketServer.

Well i'd like to reinvent the wheel for these reasons:

- i'd like to better understand all the cryptographic protocol
and which one best fit on python and for my application

- i have some kind of fear and loathing againts SSL (mostly because
of openssl command line) and i think it has too much feature for
me ( i only need some cryptography based on "ring of trust" rather
than CA )
Basycally the program i'd like to make is a secure file transfer, but it
implements also the server, i'd like to make something easy to use , secure,
to make available for people on different O.S. on untrusted network to
exchange data (with resume support).
In this way i'd like to think to something which best fit my requirements
(fast handshaking, without user authentication, based on the trust
that someone has of the public key of the connecting host) .
I have some knowledge of cryptographic protocol, however i'd like to know
which one you would suggest me to use (and from what modules) .

Regards
Samuele

--
Samuele Giovanni Tonon <to***@students.cs.unibo.it>
5% fats, 2% cerebral activities
Jul 18 '05 #5
Samuele Giovanni Tonon wrote:
Well i'd like to reinvent the wheel for these reasons:

- i'd like to better understand all the cryptographic protocol
and which one best fit on python and for my application


If you reinvent the wheel for didactical reasons, that's ok. But I
wouldn't trust that application for real use: a well-known application
is so much more tested...

--
Ciao,
Matteo
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
When passing values from one page to another using context.items collection & server.transfer, how secure is this data? This is using the notion that you add an item to the context.items...
6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
0
by: Stephen Bartholomew | last post by:
Hi All, I have an ecommerce site that resides mainly on an unsecure server for browsing the catalogue and only passes the user to a secure area when its time checkout. The secure domain however...
1
by: Iulian Ionescu | last post by:
I have a page (http://www.something.com/) and a secure page (https://secure.something.com) and the secure.something.com points to http://www.something.com/secure/ All works ok, but, when I...
3
by: Bill | last post by:
I'm running a C#.Net application that is using the HttpWebRequest to upload an xml file to a https site with FIPS complicancy turned on. On the "GetRequestStream()" method I get: "The underlying...
1
by: Mateo | last post by:
Hi! I have question about securing web aplication with SSL. I don't want to secure whole aplication, but only one page (let's call it payment.aspx). If I do this from my aplication (on page...
5
by: Joe | last post by:
I have an application which runs in a non-secure environment. I also have an application that runs in a secure environment (both on the same machine). Is there any way to share the session data for...
4
ADezii
by: ADezii | last post by:
On several occasions, we've come across situations in which our Members have inherited secured, legacy Databases and were told to either eliminate the security mechanism on these Databases or...
2
by: JackPot | last post by:
Need some discussion regarding a project in preliminary design... A laptop running XP Pro/IIS will be used to capture data from a form. The form will be used to write the captured data to XML on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.