• 大小: 5KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-02
  • 标签: aes  php  

资源简介

手写的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


评论

共有 条评论