abublihi/guid-to-base64
最新稳定版本:v2.0
Composer 安装命令:
composer create-project abublihi/guid-to-base64
包简介
Convert microsoft ldap objectGuid to Base64.
README 文档
README
NOTE: For php <=7.1 see v1.0
ObjectGuid to base64 encode
This package only provides a function to encode an Object Guid to base64.
Problem
Microsoft azure immutable id is an encoding of the Object Guid to base64. but if you tray to encode the object guid directly it will preduse a not acceptable value or incorrect to the immutable id in microsoft azure. see example below
echo base64_encode("7ea2e22f-31cb-4c97-89eb-1b4501aafe40"); // output is "N2VhMmUyMmYtMzFjYi00Yzk3LTg5ZWItMWI0NTAxYWFmZTQw"
So this packge solves the problem.
Installation
composer require abublihi/guid-to-base64
Usage
use Abublihi\Guid\ToBase64; $toBase64 = new ToBase64("7ea2e22f-31cb-4c97-89eb-1b4501aafe40"); echo $toBase64->getBase64(); // output "L+Kifssxl0yJ6xtFAar+QA=="
use Abublihi\Guid\ToBase64; echo ToBase64::encode("748b2d72-706b-42f8-8b25-82fd8733860f"); // output "ci2LdGtw+EKLJYL9hzOGDw=="
Requirements
This package deeply depends on ramsey/uuid package.
References
Azure AD Connect: Design concepts
Credits
- Thanks to
Martijn Pietersfor the discussion in discuss.python.org. - @almodhfer Thank for helping me.
统计信息
- 总下载量: 3.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-01