Skip to main content

Posts

Showing posts from May, 2017

Encryption and Decryption in Linux - I

Encryption:           Nothing but the conversion of plain text to cipher text(not understandable). Decryption:          It's conversion of  cipher text to plain text. There are wide variety of tools to achieve it.This post deal with rapid fire commands that you can throw at terminal Tools used:        [+] Openssl        [+] tr        [+] base64 Mostly the above tools are preinstalled in lot of distribution if not download it from software repository Let's get started {1} BASE64 encryption and decryption   Most widely used algorithm for simple encryption and decryption for conversion of binary data into ASCII format ( Used in MIME for conversion of Non-ASCII to ASCII characters ) More details click the above link. To convert binary to ASCII uses below commands               echo "Sample text" | base64                                 U2FtcGxlIHRleHQK To decrypt use                 echo "U2FtcGxlIHRleHQK" | base64 -d