How many bits of information are in a password?

The number of bits of information in a password are a function of thealphabet that the password is drawn from and how many characters longit is. The formula is:

nbits = ceil(log2(len(alphabet)) * nchars)

So what does that mean? Let's take the case of 8 character longUnix passwords, and do a table:

alphabet total bits (bits per character)
lower case ASCII384.7
lower case plus digits425.2
upper and lower

How not to set up your DNS (part 16)

Sort of presented in the traditional illustrated format:

; sdig ns ibc.com.au.ns1.ibc.com.au.ns2.ibc.com.au.; dig cname ibc.com.au. @ns1.ibc.com.au.[...];; flags: qr aa; QUERY: 1, ANSWER: 1, [...][...];; ANSWER SECTION:ibc.com.au. IN SOA ns1

遊樂場在哪裡

歸家途上,我看著玻璃窗外中環的景致。

從未在中環正式上班,但這個地方,是我的生活重心,是我回憶中的場景,是我的遊樂場。

小至買零食高跟鞋打掌購物吃飯看戲clubbing約會到學生年代的兼職曾經遇上的男人有發生過的愛情,

不要忘記7

如果在男人家中發現不屬你的護膚品,請不動聲色丟棄。
只是小小一支試用裝罷了,女人何必大驚小怪。

不要忘記6

女人不要自以為是,做盡一切感動男人的事,然後埋怨男人麻木不仁。
男人就是有權不賣帳。

A suggestion for HMAC signature construction

Here is a useful safety tip if you are constructing HMAC signatures for structured messages,things that you want to parse later: put a format version number intoeither the key or the message.

If you want messages in the old format to fail signature checks so thatthe rest of your code doesn't have to deal with them, put the versionnumber into the key. Put it into the message if you want your code togracefully deal with several generations of message formats; each willstill verify, but the


Weekly spam summary on July 7th, 2007

This week, we:

  • got 9,123 messages from 254 different IP addresses.
  • handled 17,076 sessions from 1,364 different IP addresses.
  • received 264,864 connections from at least 70,143 different IPaddresses.
  • hit a highwater of 12 connections being checked at once.

Volume has dropped compared to last week ,including total messages, which surprises me a bit. As we can see inthe per-day table


[舊文] 進入 yahoo blog

很久以來,看 yahoo blog 都沒法留言(包括對讀者的意見)。就算登入了 yahoo 帳號也做不到,因為我沒有開 yahoo blog。既然上堂要開 blog,也就當順水推舟好了。

作為一個寫 blog 寫了三年,連 blook 也出了的人,去上寫 blog 的課,是否有點胡鬧﹖

上堂的

在電腦壞之間宣傳



2007 書展將至
我們誠意為 12位 無私義工
設置 專頁

歡迎義工於此頁 comment 區
留下blog / xanga / msn 等
讓讀者認識一下大家
到時在橋上遇見
可互相打個招呼

=====

第八期《字花》

Continue reading...

可惜




七月一日
著名導演楊德昌病逝
這對我來說是一件大事
很喜歡他的電影
特別是巔峰之作"一一"和"牯嶺街少年殺人事件"
他那種站在高處俯瞰眾生的聰敏
以及對複雜題材舉重若輕的處理
令我每次看完他的戲都有新的體會
"一一"