I am trying to find library to encrypt/decrypt AES 128/192/256 CBC (with ability to provide custom IV)
So far I benchmarked Crypt::CBC with Crypt::OpenSSL::AES Crypt::Rijndael and Crypt::Cipher::AES. It's 30 times slower than command-line openssl call ( I tested 100Mb file)
encrypt OpenSSL::AES 6.974975
decrypt OpenSSL::AES 7.55751
encrypt Rijndael 6.38572
decrypt Rijndael 6.988235
encrypt Cipher::AES 5.818391
decrypt Cipher::AES 6.286144
vs
decrypt OPENSSL 0.208716
Seems those modules were not pure perl, because when I tried Crypt::Rijndael_PP it did not finish withing minute or more and I terminated benchmark.
I think I tried another couple of Crypt::CBC compatible modules, but they did not work at all for my mode
I tried Crypt::GCrypt - it's 3 times slower than openssl cli
good!
So, I am looking for list of modules which can compete with openssl command line tool.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.