an3o/php-icekey

PHP 的 ICE 密码实现

v1.0 2020-09-20 19:01 UTC

This package is auto-updated.

Last update: 2024-09-21 21:14:35 UTC


README

FOSSA Status

原始来源: http://www.darkside.com.au/ice/

使用示例

// ICE Key initialize
$iceKey = new IceKey(0, array(0x11, 0x22, 0x33, 0x44, 0x54, 0x55, 0x66, 0x77));
// Bytes to encrypt
$plainBytes = array(0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10);
// Encrypt bytes
$cryptedBytes = iceKey->encrypt($plainBytes);
// And decrypt back
$plainBytes2 = iceKey->decrypt($cryptedBytes);

安装

通过 Composer 安装库及其依赖。

composer require an3o/php-icekey

许可协议

FOSSA Status