瀏覽模式: 普通 | 列表

飛行遊戲與衛星地圖的結合

網路世界實在充滿創意,有人利用Google Map衛星地圖、簡單的3D動畫、再加上Flash做了個「模擬飛行」小遊戲Goggles Flight Sim ,有興趣的人進去玩看看吧!

http://www.isoma.net/games/goggles.html


attachments/month_200701/3024267267.jpg

飛越舊金山金門大橋上空





使用SQL Server 2005 取得雜湊值

HashBytes (Transact-SQL) 

Returns the MD2, MD4, MD5, SHA, or SHA1 hash of its input.
HashBytes ( '<algorithm>', { @input | 'input' } )  <algorithm>::= MD2 | MD4 | MD5 | SHA | SHA1


Example:

DECLARE @HashThis nvarchar(max);
SELECT @HashThis = CONVERT(nvarchar,'dslfdkjLK85kldhnv$n000#knf');
SELECT HashBytes('SHA1', @HashThis);
GO


取得雜湊值是個二進位varbinary欄位,如要直接取其雜湊碼可利用SQL 2005 master 資料庫內建之 master.dbo.fn_varbintohexstr 預儲程序來進行轉換,使用方法以SHA1為例是
RIGHT(master.dbo.fn_varbintohexstr(HashBytes('SHA1', CONVERT(varchar,欲轉換的資料表欄位名稱))),40)





(.Net 1.1)SHA1與MD5雜湊函數的快速取得法


Using System.Web.FormsAuthentication.HashPasswordForStoringInConfigFile


Example:


FormsAuthentication.HashPasswordForStoringInConfigFile(password , passwordFormat )

參數

password
要做雜湊演算的密碼。
passwordFormat
要使用的雜湊演算。選擇為「sha1」或「md5」。

傳回值

傳回包含雜湊密碼的 String

備註

所支援的密碼演算法為 SHA1 和 MD5。.Net FrameWork 2.0 已支援更多密碼演算法。





上海警察的拖吊車

attachments/month_200701/6691687046.jpg


attachments/month_200701/2474525507.jpg

attachments/month_200701/6739405704.jpg

attachments/month_200701/1930754685.jpg





香港跨年四日遊的照片