This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import base64 as b64 | |
from os import mkdir, path | |
from sys import argv | |
if argv[1] == "": | |
print("Como usar:") | |
print(f"{argv[0]} segredo.txt") | |
else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" == "" ]; then | |
echo "Como usar:" | |
echo "$0 segredo.txt" | |
else | |
[ ! -d decoded ] && mkdir -p decoded | |
for linha in $(cat $1);do | |
echo -n $linha | rev | base64 -d >> decoded/decoded1_"$1" | |
done |