from cryptography.fernet import Fernet def encrypt_message(public_key, message): # Get the public key in bytes public_key_bytes = bytes.fromhex(public_key) # Generate a symmetric key symmetric_key = Fernet.generate_key() # Encrypt the message using the symmetric key f = Fernet(symmetric_key) encrypted_message = f.encrypt(message.encode()) # Encrypt the symmetric key using the public key rsa_key = RSA.import_key(public_key_bytes) cipher_rsa = PKCS1_OAEP.new(rsa_key) encrypted_key = cipher_rsa.encrypt(symmetric_key) return encrypted_key, encrypted_message

import ecdsa # Generate a private key private_key = ecdsa.SigningKey.generate(curve=ecdsa.SECP256k1) # Get the public key public_key = private_key.get_verifying_key() # Encode the keys to hexadecimal format private_key_hex = private_key.to_string().hex() public_key_hex = public_key.to_string().hex() print(f'Private key: {private_key_hex}') print(f'Public key: {public_key_hex}') from cryptography.fernet import Fernet def encrypt_message(public_key, message): # Get the public key in bytes public_key_bytes = bytes.fromhex(public_key) # Generate a symmetric key symmetric_key = Fernet.generate_key() # Encrypt the message using the symmetric key f = Fernet(symmetric_key) encrypted_message = f.encrypt(message.encode()) # Encrypt the symmetric key using the public key rsa_key = RSA.import_key(public_key_bytes) cipher_rsa = PKCS1_OAEP.new(rsa_key) encrypted_key = cipher_rsa.encrypt(symmetric_key) return encrypted_key, encrypted_message from cryptography.fernet import Fernet def encrypt_message(public_key, message): # Get the public key in bytes public_key_bytes = bytes.fromhex(public_key) # Generate a symmetric key symmetric_key = Fernet.generate_key() # Encrypt the message using the symmetric key f = Fernet(symmetric_key) encrypted_message = f.encrypt(message.encode()) # Encrypt the symmetric key using the public key rsa_key = RSA.import_key(public_key_bytes) cipher_rsa = PKCS1_OAEP.new(rsa_key) encrypted_key = cipher_rsa.encrypt(symmetric_key) return encrypted_key, encrypted_message
Skip to content
PublicNotice.Crypto "Say What You Want to Say
Uncategorized

I asked Ai: “What is the DTCC and how does it use a open leg and closed leg!:-)

No Comments

The DTCC on their website talked about a open leg and a closed leg in regards to blockchain and Cryptocurincies what does that mean? The Depository Trust & Clearing Corporation (DTCC) is…

publicnotice.crypto@gmail.com
by publicnotice.crypto@gmail.com
January 10, 2023March 29, 2023
Uncategorized

I asked whether Google Conspired with the NSA :And this was the answer

No Comments

SHA256 Hash: cc8df795214cc5c35a7b88eef3f32a988aa512330f1159367845b2dd4889afed

publicnotice.crypto@gmail.com
by publicnotice.crypto@gmail.com
January 9, 2023March 29, 2023
Uncategorized

I asked Ai the following question, How my blockchain , ” PublicNotice.Crypto could run nodes on a LevelDB Blockchain and here is AI’s answer:

No Comments

You gave me s suggestion as to the data base I would like to use, You suggested LevelDB was a good choice for a blockchain: The question I have for you is,if…

publicnotice.crypto@gmail.com
by publicnotice.crypto@gmail.com
January 5, 2023March 29, 2023
Uncategorized

I purchased LevelDB.Crypto as a suggestion as to the best Data Base I could use for my,”PublicNotice.Crypto”, Blockchain and this was “Open AI,s”, answer:

No Comments

“LevelDb.Crypto I call it It’s on the Blockchain, or so ” Open AI, says”: ” I just purchased a open AI web three blockchain suggestion and I purchased that; “LevelDB.Crypto”, “I here…

publicnotice.crypto@gmail.com
by publicnotice.crypto@gmail.com
January 4, 2023March 29, 2023
Uncategorized

When I asked “Open AI”, could I use ,Maria DB,” as my data base for a Blockchain, this is what “Open AI, said”:

No Comments

Siddharth Gangwar Apr 1, 2022 · 4 min read · Listen LevelDB — Invented by Google and used by cryptocurrencies like Bitcoin (₿) What is LevelDb? LevelDB is a fast key-value storage…

publicnotice.crypto@gmail.com
by publicnotice.crypto@gmail.com
January 4, 2023March 29, 2023

Posts navigation

Older posts

Powered by WordPress | Theme Blogbaster by DinevThemes