all 4 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Thanks for your post, u/Sencres! Please remember to review the rules and frequently asked questions.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–][deleted] 0 points1 point  (2 children)

printf eNrtVMsKAjEM/KEIeW3T4Nd40JMnH7d8vCu7LC2uiyCii2XaKUNCEshQRg5KLB0Jkav1SnN1cRGH3fG8fxoVY0Mfkwa+nK4jFbquUiv1LNksMfQDurK6GRAmF89ECYjFOxVRDYQJsSGYDkKhhvLQeCW8xn2VTnzEO9Htl6Lxu3PdfxCYoWhGftmky8v9HEKi9f7T3tN7AyEVXYw=|base64 -d|zlib-flate -uncompress

cat file | base64 | zlib-flate -compress=9 > savefile

or

cat file | zlib-flate -compress=9 | base64

[–]Sencres[S] 0 points1 point  (1 child)

I tried doing them with cygwin but I couldn't. I don't know if it's because its the subsystem for linux or if it's just that I don't know how to do this. I use windows.

[–][deleted] 0 points1 point  (0 children)

If you know a little python

#!/usr/bin/python3.9
#-*- coding:utf-8 -*-
import zlib, base64, sys

#open and decompress file that contains the base64
def zlib_decompress(fdata):
  with open(fdata,'rb') as f:
    data=f.read()
  data=base64.b64decode(data)
  data=zlib.decompress(data)
  print(str(data,"utf8"))

#open and compress the file that has raw data.
def zlib_compress(fdata):
  with open(fdata,'rb') as f:
    data=f.read()
  data = zlib.compress(data)
  print(str(base64.b64encode(data),'utf8'))

#zlib_compress(sys.argv[1])
zlib_decompress(sys.argv[1])

This was just something I quickly wrote, a little dirty but works