Ashar is a free and open-source project developed to provide a lightweight yet effective solution for secure text encryption and obfuscation. It allows users to protect their sensitive data through password-based encoding mechanisms, ensuring both confidentiality and integrity. By combining techniques like Base64 encoding, MD5 hashing, and custom character manipulation, Ashar offers a simple yet reliable way to encode and decode messages. Whether you're looking to secure notes, store credentials, or transmit confidential information, Ashar ensures that your content remains private, tamper-resistant, and accessible only to those with the correct password.
# install from pypi:
❯ pip install ashar
# local install:
❯ git clone https://github.com/yasserbdj96/ashar.git
❯ cd ashar
❯ sudo python setup.py install
# uninstall:
❯ pip uninstall ashar
# Dwonload:
❯ git clone https://github.com/yasserbdj96/ashar.git
❯ cd ashar
# default run on any os:
❯ python3 run.py <CONDITION*> <PASSWORD*> <TEXT*>
# Run with Makefile:
❯ make run con="<CONDITION*>" pass="<PASSWORD*>" text="<TEXT*>"
# * = All inputs must be entered.
# PASSWORD = The password used for encrypt your text.
# TEXT = The text to be encrypted.
# CONDITION = The nature of the process is encryption or decryption "encode/decode".
from ashar import ashar
#For encryption
p1=ashar("<PASSWORD*>","<TEXT*>").encode()
# p1=ashar("<PASSWORD*>","<TEXT*>",chars='abcdefghijklmnopqrstuvwxyz',upchars='ABCDEFGHIJKLMNOPQRSTUVWXYZ',smbls=')(}{][><!?$%&-_=+;',numb='1234567890').encode()
print(p1)
#To decrypt
p2=ashar("<PASSWORD*>","<ENCRYPTED_TEXT*>").decode()
print(p2)
# * = All inputs must be entered.
from ashar import ashar
# Example:1
#For encryption
p1=ashar("123","Example:1").encode()
print(p1)
#To decrypt
p2=ashar("123",p1).decode()
print(p2)
Click to See changelog History
Developer / Author: yasserbdj96
The content of this repository is bound by the following LICENSE.
If you like `ashar` and want to see it improve furthur or want me to create intresting projects , You can buy me a coffee
website . github . gitlab . linkedin . twitter . instagram . facebook . youtube . pypi . docker . telegram . gitter . e-mail . sponsor