#include <iostream>

#include <bobcat/isymcryptstreambuf>

using namespace std;
using namespace FBB;

int main()
{
    ISymCryptStreambuf<ENCRYPT> ebuf(cin, "bf-cbc",
                                    "1234567890", "1234567890");
    istream ein(&ebuf);

    ISymCryptStreambuf<DECRYPT> dbuf(ein, "bf-cbc",
                                    "1234567890", "1234567890");
    istream din(&dbuf);

    cout << din.rdbuf();
}
