Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ahmadfixer
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# AhmadFixer - رمزنگاری ساده توسط احمد جان 😤

def encrypt(text, key=5):
return ''.join([chr(ord(char) + key) for char in text])

def decrypt(text, key=5):
return ''.join([chr(ord(char) - key) for char in text])

if __name__ == "__main__":
original = "سلام احمد جان"
encrypted = encrypt(original)
decrypted = decrypt(encrypted)

print("🔐 متن اصلی:", original)
print("🧠 رمزنگاری شده:", encrypted)
print("✅ رمزگشایی شده:", decrypted)