
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
This is a plugin to extend Polars with encryption algorithm AES-GSM-SIV written in Rust for a blazing fast (c) performance.
08-01-2025: updated for latest versions of Polars and rust
This plugin is built using a guide by Marco Gorelli.
The encryption algorithm crate is this. The specific implementation is a 256bit version of it.
There are two methods: encrypt and decrypt. Both require key and nonce, as per algorithm specification.
import polars as pl
from polars_encryption import encrypt, decrypt
# Define the DataFrame
df = pl.DataFrame({
"plaintext": ["Hello, world!", "Polars is fast!", "Encrypt me!"]
})
# Define the encryption key and nonce
key = b"an example very very secret key."
nonce = b"unique nonce" # 12 bytes (96 bits)
# Encrypt the plaintext column
df_encrypted = df.with_columns(
encrypt(pl.col("plaintext"), key=key, nonce=nonce).alias("ciphertext")).with_columns(decrypt(pl.col("ciphertext"), key=key, nonce=nonce).alias("decrypted"))
print((df["plaintext"] == df_encrypted["decrypted"]).all())
print(df_encrypted)
FAQs
Unknown package
We found that polars-encryption demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.