Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
swadhinbiswas committed Jun 9, 2024
1 parent 7c7f54c commit 7416c05
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Bot/API/encrypttext.py
Original file line number Diff line number Diff line change
@@ -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()

7 changes: 7 additions & 0 deletions Bot/BotFunction/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
</b>
<i>{devdeveloper_message()}</i>
Expand Down

0 comments on commit 7416c05

Please sign in to comment.