You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

ara_v4

ara_v4 is a dataset where the text column has been encrypted with AES-GCM (AES-256) to preserve privacy while still allowing distribution.

Usage

You can load the dataset using the 🤗 Datasets library:

import base64
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
from datasets import load_dataset

# 🔑 Replace this with the Base64 key provided securely
key_b64 = "PASTE-YOUR-KEY-HERE"
key = base64.b64decode(key_b64)
aesgcm = AESGCM(key)

def decrypt(token: str) -> str:
    data = base64.b64decode(token.encode())
    nonce, ciphertext = data[:12], data[12:]
    return aesgcm.decrypt(nonce, ciphertext, None).decode()

# Load dataset
dataset = load_dataset("QomSSLab/ara_v4")

# Decrypt rows
dataset = dataset.map(lambda x: {"text": decrypt(x["text"])})
Downloads last month
27