Skip to main content

aes,gpg,encrypt, man etc

-Who is the most controversial man in the world recently?
-Definitely it's Julia Assange.

WikiLeaks had released a package of file encrypted with AES.
What shall we do right now?
yeah! download it and wait for the passphrase!

So let's have a little try at encrypting in Ubuntu.
GPG
 here is sample file another_file.
gpg-1
1.gpg -c filename
gpg-2
enter a passphrase.Now the file is encrypted.
gpg-3
2.gpg filename.gpg
gpg-4

gpg-5


AES
    Download AESCrypt here.
    extract the package with
        tar xzvf filename
    then
        make
        sudo make install
    I haven't tried aescrypt yet. But you can make it with a simple command. Just go to their home page.

Others things:
Chinese man page.
while downloading source file of aescrypt, i found that they provide a manpage file.
So making 'man aescrypt' working in terminal became a problem. After googling, I resolved it. And in additionl, I found a way to use man in Chinese.
where is manpage file ?
    they are in /usr/share/man
    run
        sudo cp aescrypt.1 /usr/share/man/man1
    gzip it
        gzip aescrypt.1 aescrypt.1.gz
    Now 'man aescrypt' is working.
How to use chinese man?
    Actually it's already in the repositry.
        sudo apt-get instal manpages-zh
    make a alias so you can use both original man and man_zh.
        vim ~/.bashrc
    add
        alias cman='man -M /usr/shar/man/zh_CN'
    Run 'cman yourcommand' and bang! it is.

Comments

Popular posts from this blog

bitlbee: twitter in irc

dedicate to @sychopx, without her instruction, this wouldn't be done. from BitlBee Home Page What is BitlBee? BitlBee brings IM (instant messaging) to IRC clients. It's a great solution for people who have an IRC client running all the time and don't want to run an additional MSN/AIM/whatever client. BitlBee currently supports the following IM networks/protocols: XMPP/Jabber (including Google Talk), MSN Messenger, Yahoo! Messenger, AIM and ICQ, and the Twitter microblogging network (plus all other Twitter API compatible services like identi.ca and status.net). 很明显的说了,bitlbee是把IM转成IRC的形式,非常适合整天开着irc而又不想开msn/aim的人。 目前bitlbee支持XMPP/Jabber (包括 Google Talk), MSN Messenger, Yahoo! Messenger, AIM and ICQ, and the Twitter 。 记录一下自己在ubuntu上折腾bitlbee的过程: 要准备的东西:irc客户端(这里用的是irssi) 插曲:因为看错了这个东西的名字,少看了个“l”,以为是“bitbee”,所以在ubuntu apt安装是一直找不到。事实上,bitlbee已经包含在ubuntu源里了。另外,据@sychopx says, in fact you don't have to install it to use it. it's already implemented on the server. all you n...

TwitVim: Tweeting in the vim

很久没更新了,因为很久没折腾了。 昨晚火星地发现了一个好东西:twitvim,是个vim script。 试用了下,很不错,该有的功能都有了。这里做个笔记。 1、安装 从 vim script 下载twitvim的vba包。 用vim打开下载到的twitvim.vba,输入 :so % 回车完成安装。 安装curl,twitvim需要curl来fetching。 sudo apt-get install curl 2、配置 在.vimrc里添加 let twitvim_login = " user:pwd " 试用api,则添加 let twivim_api_root = " api_url " 使用代理,添加 let twitvim_proxy = " proxyhost:proxyport " 3、使用 进入vim (via http://www.vim.org/scripts/script.php?script_id=2204 ) :PosttoTwitter - This command will prompt you for a message to send to Twitter. :CPosttoTwitter - This command posts the current line in the current buffer to Twitter. :BPosttoTwitter - This command posts the current buffer to Twitter. Alt-T - In Visual select mode, the Alt-T key posts the selected text to Twitter.   (use Ctrl-T instead if menu bar is enabled) NOTE: The T mapping was changed to Alt-T to avoid overriding the T search command. Alt-R - Starts a @-reply. (from timeline buffer) Alt-D - Starts a direct...