Skip to main content

encrypt encode text

Project description

encrypt,encoder

encryptและdecryptข้อความแบบง่ายๆ(ง่ายมาก)


วิธีใช้

import encrypt_encode as enc
print(enc.encode("hello"))
#aGVsbG8=
print(enc.decode("aGVsbG8="))
#hello
print(enc.encrypt("hello"))
#('ncdLAcZ=', 'rAGVhPt3lExQBay6RDK1S5wvCLbXHcpUjW2gms4TFizMNo0Zq7k8Jdfnu9OeIY')
#encrypt(text,key)ถ้าไม่ใส่keyจะสุ่มkeyให้เอง
print(enc.encrypt("hello","rAGVhPt3lExQBay6RDK1S5wvCLbXHcpUjW2gms4TFizMNo0Zq7k8Jdfnu9OeIY"))
#ncdLAcZ=
#encrypt(text,key)ถ้าใส่keyจะreturnแค่ข้อความ
print(enc.decrypt("ncdLAcZ=", "rAGVhPt3lExQBay6RDK1S5wvCLbXHcpUjW2gms4TFizMNo0Zq7k8Jdfnu9OeIY"))
#keyหาได้จาก keygen() หรือ encrypt() ก็ได้

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

encrypt_encode-2.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

encrypt_encode-2.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page