Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.