simple-hatena-modeみたいにemacsでMTに記事を書きたいと思って探してみたらmapaeというのをみつけたので早速インストールしてみた。
それなりに動いてるんだけど、投稿したりするためのPerlのソースがちょっとごちゃごちゃしてて拡張性がなさげ…。
simple-hatena-modeみたいにemacsでMTに記事を書きたいと思って探してみたらmapaeというのをみつけたので早速インストールしてみた。
それなりに動いてるんだけど、投稿したりするためのPerlのソースがちょっとごちゃごちゃしてて拡張性がなさげ…。
my $cipher = Crypt::CBC->new({ key => 'foo', cipher => 'Blowfish' });
warn $cipher->encrypt_hex( 'bar' );
my $cipher = Crypt::CBC->new({ key => 'foo', cipher => 'Blowfish' });
warn $cipher->decrypt_hex( '53616c7465645f5fcf0eb6374be3c083823b5e4bd39192b0' );
my $cipher = Crypt::CBC->new({ key => 'foo', cipher => 'Blowfish' });
warn $cipher->decrypt_hex( '53616c7465645f5fcf0eb6374be3c083823b5e4bd39192b0' );
warn $cipher->encrypt_hex( 'bar' );
my $cipher = Crypt::CBC->new({ key => 'foo', cipher => 'Blowfish' });
warn $cipher->encrypt_hex( 'bar' );
my $cipher = Crypt::CBC->new({ key => 'foo', cipher => 'Blowfish' });
warn $cipher->decrypt_hex( '53616c7465645f5f241223b0d5e71b627c0d3cb07ffa6b88' );
warn $cipher->encrypt_hex( 'bar' );
-The salt, iv and key are now reset before each complete encryption cycle. This avoids inadvertent reuse of the same salt.
my $cipher = Crypt::CBC->new({
key => "foo",
cipher => "Blowfish",
iv => "12345678",
prepend_iv => 0,
});
warn $cipher->encrypt_hex("mdl12345678");