From 7416c05ccae39446bfb5db153633b34d3c97518b Mon Sep 17 00:00:00 2001 From: swadhinbiswas Date: Mon, 10 Jun 2024 01:20:02 +0600 Subject: [PATCH] up --- Bot/API/encrypttext.py | 8 ++++++++ Bot/BotFunction/helper.py | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 Bot/API/encrypttext.py diff --git a/Bot/API/encrypttext.py b/Bot/API/encrypttext.py new file mode 100644 index 0000000..96832b9 --- /dev/null +++ b/Bot/API/encrypttext.py @@ -0,0 +1,8 @@ +from cryptography.fernet import Fernet + +key= b'gAAAAABhJ9Zzv6J9' + +def encrypt_text(text): + f = Fernet(key) + return f.encrypt(text.encode()).decode() + diff --git a/Bot/BotFunction/helper.py b/Bot/BotFunction/helper.py index df7c6d2..672c238 100644 --- a/Bot/BotFunction/helper.py +++ b/Bot/BotFunction/helper.py @@ -44,6 +44,13 @@ def help_message(name): cmd : /translate [To translate text] cmd : /audio [To convert text to audio] cmd : /audio[dalle] [To convert audio to text] +cmd : /twitter [To download twitter video] +cmd : /qrcode [To generate qr code] +cmd : /morsecode [To convert text to morse code] +cmd : /morsedecode [To convert morse code to text] +cmd : /ocr [To extract text from image] +cmd : /encrypt [To encrypt text] +cmd : /decrypt [To decrypt text] {devdeveloper_message()}