Ope
This is a Order-preserving encryption (OPE) lib inspired by cryptdb's ope implementation.
Install / Use
/learn @sentclose/OpeREADME
Ope in rust
This is an Order-preserving encryption (OPE) lib inspired by cryptdb's ope implementation.
It is a pure rust implementation, no c dependencies needed.
It is also written for no-std targets (thanks to num-traits) and works in wasm.
The max value to encrypt is 65532
use ope::get_ope;
fn main()
{
let k = b"this is a key 10".to_owned();
let ope = get_ope(&k);
let a = ope.encrypt(21).unwrap();
let b = ope.encrypt(65531).unwrap();
let c = ope.encrypt(65532).unwrap();
assert!(a < b);
assert!(b < c);
}
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate 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
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
