Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Command-Line File Encrypter

Rubik's Crypt:

Usage: Options E to encrypt string, D to decrypt string
EF to encrypt file (must also have an output name after the password)
DF to decrypt file (must also have an output name after the password)

rubikscrypt Directive Input Password (OutputFile?)\
e.g.
    rubikscrypt E "Encrypt This String" Password
    rubikscrypt D "Decrypt This String" Password
    rubikscrypt EF filetoencrypt Password outputname
    rubikscrypt DF filetodecrypt Password outputname


To install it into your command line (and therefore all your future programs via os.system)
create a batch file rubikscrypt.bat as follows,
Code
@echo off
python C:\Users\User\Documents\CMD\rubikscrypt.py %*

and make sure to put the batch file in on of the directories in your path (start menu search -> edit the system environment variables -> Environment Variables ->path)

Here is the python script,
rubikscrypt.py
[paste]
https://pastebin.com/shNUGhMs
[/paste]

I hope someone enjoys it. Sorry for the lack of comments, check my post history for a description on the cryptography board (this version is more updated than the one I linked there, finished hopefully)
[Image: zzzscreen.gif]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by HammyleinMar 30, 2022 12:37 PM 4 254 Mar 30, 2022 12:37 PM
Last Post: foxegado
[Python] by MiguelSanchezJan 22, 2022 07:01 AM 0 147 Jan 22, 2022 07:01 AM
Last Post: MiguelSanchez
[Python] by VUEDUEJun 3, 2021 04:20 PM 5 223 Jun 3, 2021 04:20 PM
Last Post: Freddy Kruеger