#!/bin/bash
# This file is under revision control.
# Author: Crouse - bashscripts.org
# Filename: encos
# Usage: encos - ENCrypt On Screen
# Notes: Interactive passphrase encryption program
#        Reads input from text editor and encrypts to screen.
# 1. Enter Comment for message 2. Enter message. 3. Enter password.

read -p "Enter the name/comment for this message : " comment; vi passphraseencryption
gpg --armor --comment "$comment" --no-options --output passphraseencryption.gpg --symmetric passphraseencryption
shred -u passphraseencryption; cat passphraseencryption.gpg ;shred -u passphraseencryption.gpg; exit 0






Follow us on