承接 dbeurive/cast128 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dbeurive/cast128

Composer 安装命令:

composer require dbeurive/cast128

包简介

This project implements the RFC 2144 - The CAST-128 Encryption Algorithm.

README 文档

README

This repository contains a PHP module that implements the CAST-128 Encryption Algorithm as specified by the RFC 2144.

Installation

From the command line:

composer require dbeurive\cast128

If you want to include this package to your project, then edit your file composer.json and add the following entry:

"require": {
    "dbeurive/cast128": "*"
}

Synopsis

use dbeurive\Cast128\Cast128;

$key = array(0x01, 0x23, 0x45, 0x67, 0x12, 0x34, 0x56, 0x78, 0x23, 0x45);
$data_to_cypher = array(0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF); // 32-bit long!
$cypher = new Cast128($key);
$cyphered = $cypher->cypher($data_to_cypher);
$deciphered = $cypher->decipher($cyphered);

The key: The key is represented by an array of 8-bit integer values (from 0 to 255). The array contains from 5 to 16 values. That is, the length of the key varies from 40 to 128 bits.

The data to cypher/decipher: This data is represented by an array of exactly 8 values. That it, the data to cypher is a 32-bit long value.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固