Base64 encode e decode

Publicado por Perfil removido (última atualização em 29/08/2012)

[ Hits: 15.719 ]

Download base64.sh




Codificador e decodificador de base64 em shell-script

  



Esconder código-fonte

#!/bin/bash                                                                                                                                    
                                                                                                                                               
# Codifcador e Decodificador de Bas64                                                                                                          
# By MMxM                                                                                                                                      
# UTF-8                                                                                                                                        
                                                                                                                                               
echo                                                                                                                                           
echo "Base64 encode, decode by MMxM"                                                                                                           
echo                                                                                                                                           
echo "[*] Opções "                                                                                                                             
echo "[1] Codificar"                                                                                                                           
echo "[2] Decodificar"
echo

read option
        if [ $option = "1" ]
                then
                        echo
                        echo "Digite a palavra que sera codificada"
                                echo
                                read palavra
                                        echo
                                        echo "Base64: `echo $palavra | base64`"
                                        echo
        elif [ $option = "2" ]
                then
                        echo
                        echo "Digite o texto que deseja decodificar"
                                echo
                                read texto
                                        echo
                                        echo "Base64 decode: `echo $texto | base64 -d`"
                                        echo
        else
                echo
                echo "[-] opção invalida"
                echo
                exit 0;
fi

Scripts recomendados

Transformando arquivos TXT em arquivos PDF

Script = Listar hardware PC

Instalar temas do Windowmaker

Cópia de arquivos

Criar senha para abrir determinado programa


  

Comentários
[1] Comentário enviado por Gabriel_Silva em 30/08/2012 - 15:10h

Fezes!!!!

[2] Comentário enviado por vitinho217 em 13/06/2014 - 10:26h

Gostei cara, tinha me esquecido desse comando. Vou publicar uma versão deste mesmo programa só que usando dialogs.
Obrigado pela contribuição, VIVA O LINUX !


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts