From 014c6c9866c077312a3b9100e2e06d3fd9694c04 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 4 May 2012 04:22:59 +0900 Subject: [PATCH] add encrypt and decrypt stream func --- bashrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bashrc b/bashrc index 8be3259..e221b78 100755 --- a/bashrc +++ b/bashrc @@ -150,6 +150,16 @@ then || complete -o default -o nospace -F _git g fi +encrypt-stream(){ + test $# -eq 1 && + mcrypt --key $1 2>/dev/null | base64 +} + +decrypt-stream(){ + test $# -eq 1 && + base64 -d | mcrypt -d --key $1 2>/dev/null +} + showinfo(){ echo "Japanese letters are 表示可能"