Team Ai
Datasetpublic

ysn-rfd/text-dataset-tiny-code-script-py-format

USED of tahamajs/medicine_ds_persian for .parquet file USED of Alijafarixcs2/persian-it-llama2-2k for .parquet file USED of Abirate/english_quotes for .jsonl file NEW FILES (05/12/2025) NEW FILES (12/26/2025) NEW FILES (02/15/2026)

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
3likes1.7kdownloads
pub_key.py19 linesDownload Raw Back to cert
1from cryptography.hazmat.primitives.asymmetric import rsa
2from cryptography.hazmat.primitives import serialization
3
4private_key = rsa.generate_private_key(public_exponent=65537, key_size=2048)
5public_key = private_key.public_key()
6
7with open("private_key.pem", "wb") as f:
8    f.write(private_key.private_bytes(
9        encoding=serialization.Encoding.PEM,
10        format=serialization.PrivateFormat.TraditionalOpenSSL,
11        encryption_algorithm=serialization.NoEncryption()
12    ))
13
14with open("public_key.pem", "wb") as f:
15    f.write(public_key.public_bytes(
16        encoding=serialization.Encoding.PEM,
17        format=serialization.PublicFormat.SubjectPublicKeyInfo
18    ))
19