Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Batch files - encryption/decryption

So In a folder on my computer there's files named after users. Ex: myth.uuid

In those .uuid files is text telling what a user's password is. Ex: 123567

I wanted a batch file to encrypt it to random mess but another batch file that can decrypt it back into plain text. Any ideas? I am using windows 7.

like image 737
MythTheWolf Avatar asked Dec 04 '25 13:12

MythTheWolf


1 Answers

It's rather obfuscation than encrytion :

certutil -encodehex myth.uuid myth.hex
certutil -decodehex myth.hex myth.uuid

or

certutil -encode myth.uuid myth.b64
certutil -decode myth.b64 myth.uuid

In both cases first line encodes the file and the second decodes it.First one to/from HEX the second Base64.You can use some combination for more obfuscated results.For encoding file to hex you can also check file2hex.bat which will strip the data of the file and still you'll be able to use certutil -decodehex

like image 127
npocmaka Avatar answered Dec 07 '25 14:12

npocmaka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!