Berrysoft.XXTea
A .NET implementation of TEA, XTEA and XXTEA algorithm.
Install / Use
/learn @Berrysoft/Berrysoft.XXTeaREADME
Berrysoft.XXTea
A .NET implementation of TEA, XTEA and XXTEA algorithm.
Usage
var cryptor = new XXTeaCryptor("SuperStrongKey");
var encryptedData = cryptor.EncryptString("Hello world!"); // Encrypt
var decryptedData = cryptor.DecryptString(encryptedData); // Decrypt
Benchmark
The other two XXTEA implementation:
BenchmarkDotNet=v0.11.5, OS=Windows 10.0.18995
Intel Core i5-7200U CPU 2.50GHz (Kaby Lake), 1 CPU, 4 logical and 2 physical cores
.NET Core SDK=3.0.100
[Host] : .NET Core 3.0.0 (CoreCLR 4.700.19.46205, CoreFX 4.700.19.46214), 64bit RyuJIT
Clr : .NET Framework 4.7.2 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.8.3921.0
Core : .NET Core 3.0.0 (CoreCLR 4.700.19.46205, CoreFX 4.700.19.46214), 64bit RyuJIT
CoreRT : .NET CoreRT 1.0.28208.02 @BuiltBy: dlab14-DDVSOWINAGE101 @Branch: master @Commit: 9a09d481951a9bcf7b5a736e2de43a788c758904, 64bit AOT
Mono : Mono 6.4.0 (Visual Studio), 64bit
Speed
|
|
|
|:-:|:-:|
|Encrypt Time|Decrypt Time|
Berrysoft.XXTea is slightly slower than Gibbed.XXTEA, mostly because of virtual function calls.
Allocation
|
|
|
|:-:|:-:|
|Encrypt Allocation|Decrypt Allocation|
Berrysoft.XXTea uses less allocation, and even no allocation with data in Span.
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
