AESlibrary only two lines

Posted by user303968 on Stack Overflow See other posts from Stack Overflow or by user303968
Published on 2010-03-29T05:53:46Z Indexed on 2010/03/29 6:03 UTC
Read the original article Hit count: 306

Filed under:
|
|
|

Does anyone know a c++ library that uses advanced encryption standard encryption that can achieve encryption and decryption (using counter mode) in just two lines of codes. No need of padding or buffering the plaintexts the library will take care of all this. I have had a look at crypto++, openssl and libtomcrypt but in these it seems I need to write codes to buffer and pad the plaintexts which I don't want. In brief, I need something along these lines:

ciphertext = encrypt(ctr_mode(),plaintext,key)

plaintext = decrypt(ctr_mode(),ciphertext,key)

Thanks!

© Stack Overflow or respective owner

Related posts about c++

Related posts about aes-encrypt