
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Ruby implementation of encrypted content-encoding.
https://tools.ietf.org/html/draft-thomson-http-encryption-02
Add this line to your application's Gemfile:
gem 'ece'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ece
Encrypting:
require 'ece'
key = Random.new.bytes(16)
salt = Random.new.bytes(16)
data = "Your very private data"
encrypted_data = ECE.encrypt(data, key: key, salt: salt)
Decrypting:
ECE.decrypt(encrypted_data, key: key, salt: salt)
Data can be bytestring as well.
Encrypting data with elliptical curve Diffie-Hellman (ECDH) key agreement protocol using client keys providing by a Web Push subscription:
user_public_key # Provided by the browser, effectively: Random.new.bytes(65)
user_auth # Provided by the browser, effectively: Random.new.bytes(16)
local_curve = OpenSSL::PKey::EC.new("prime256v1")
local_curve.generate_key
user_public_key_point = OpenSSL::PKey::EC::Point.new(local_curve.group, OpenSSL::BN.new(user_public_key, 2))
key = local_curve.dh_compute_key(user_public_key_point)
server_public_key = local_curve.public_key.to_bn.to_s(2)
salt = Random.new.bytes(16)
encrypted_data = ECE.encrypt(data,
key: key,
salt: salt
server_public_key: server_public_key,
user_public_key: user_public_key,
auth: user_auth)
Bug reports and pull requests are welcome on GitHub at https://github.com/randomlogin/ece.
FAQs
Unknown package
We found that ece demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.