
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Ruby bindings for the ore.rs Order-Revealing Encryption Rust library.
For the most common platforms, we provide "native" gems (which have the shared object that provides the cryptographic primitives pre-compiled). At present, we provide native gems for:
x86_64
and aarch64
x86_64
and arm64
On these platforms, you can just install the ore-rs
gem via your preferred
method, and it should "just work". If it doesn't, please report that as a
bug.
For other platforms, you will need to install the source gem, which requires that you have Rust 1.57.0 or later installed. On ARM-based platforms, you must use Rust nightly, for SIMD intrinsics support.
If you have a burning need to install directly from a checkout of the git
repository, you can do so by running bundle install && rake install
. As this
is a source-based installation, you will need to have Rust installed, as
described above.
First off, load the library:
require "ore-rs"
Then create a new encryptor:
enc = ORE::AES128.new(key1, key2, 64, 8)
Encrypt a couple of ciphertexts:
ct1 = enc.encrypt(42)
ct2 = enc.encrypt(420)
Finally, compare them:
ct1 < ct2 # => true
ct1 > ct2 # => false
If you need to store a ciphertext, you can turn it into a binary string:
File.write("/tmp/ciphertext", ct1.to_s)
To turn a binary string back into a ciphertext, just create a new ciphertext with it:
ct3 = ORE::AES128::Ciphertext.new(File.binread("/tmp/ciphertext"), 8)
Please see CONTRIBUTING.md.
FAQs
Unknown package
We found that ore-rs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.