資源簡介
手寫的aes加密類,可實現,128,192,256位數加密
代碼片段和文件信息
/*?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-??*/
/*??AES?implementation?in?PHP?(c)?Chris?Veness?2005-2011.?Right?of?free?use?is?granted?for?all????*/
/*????commercial?or?non-commercial?use?under?CC-BY?licence.?No?warranty?of?any?form?is?offered.???*/
/*?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-?-??*/
???
class?Aes?{
???
??/**
???*?AES?Cipher?function:?encrypt?‘input‘?with?Rijndael?algorithm
???*
???*?@param?input?message?as?byte-array?(16?bytes)
???*?@param?w?????key?schedule?as?2D?byte-array?(Nr+1?x?Nb?bytes)?-
???*??????????????generated?from?the?cipher?key?by?keyExpansion()
???*?@return??????ciphertext?as?byte-array?(16?bytes)
???*/
??public?static?function?cipher(
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????7419??2013-07-12?12:04??aes.class.php
?????文件???????7708??2013-07-12?12:04??aesctr.class.php
?????文件????????509??2013-08-14?12:30??demo.php
-----------?---------??----------?-----??----
????????????????15636????????????????????3
- 上一篇:H5微信網頁授權接口開發 PHP
- 下一篇:php生成百度sitemap站點地圖類
評論
共有 條評論