Skip to content

PyCrypto and M2Crypto comparisons for signing CloudFront URLs

Notifications You must be signed in to change notification settings

raymondtangsc/botosigning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experiments with signing using PyCrypto and M2Crypto. Should be compatible with Boto's signing of CloudFront URLs.

Example run

Specs

Hardware:

  • 1.7 GHz Intel Core i5
  • 4 GB 1333 MHz DDR3

Python:

Python 2.7.2 (default, Dec 30 2011, 18:21:22) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)] on darwin

Results

$ python sign.py
rsa1024.pem using m2crypto, crypto:
  EQUAL
running 500 iterations of m2crypto
  took 1.146s
running 500 iterations of crypto
  took 2.682s

rsa2048.pem using m2crypto, crypto:
  EQUAL
running 500 iterations of m2crypto
  took 5.531s
running 500 iterations of crypto
  took 10.623s

Known issues

Signatures differ if non-ascii letters are included.

About

PyCrypto and M2Crypto comparisons for signing CloudFront URLs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published