LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 10-05-2004, 03:12 PM   #1
max-ebb
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
GPG encrypt text in terminal


I use GPG on the terminal, no end user interface.
so far everything is fine but one function I cant seem to figure out.
I want to encrypt the text i write in the terminal and paste it into the browser e-mail page.
if i digit the command gpg at prompt it ask me to write the text but how do i encrypt it in memory and paste it?
KGPG has this function using the clipboard but how do i do it in the terminal?
I use a laptop and the middle button paste function does not work, neither using both buttons.
thanks
max
 
Old 10-05-2004, 08:54 PM   #2
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 32
Hi max-ebb, welcome to LQ.org!

It may be possible to highlight the text in the terminal, then click in the browser's text box, then hit 'ctrl-v' to paste.

But you should probably try to fix your X config so that middle-clicking will work. Does middle-clicking work to paste in terminals but not in your browser? What browser are you using? There is a setting in Mozilla/Firefox that will disable middle-click pasting. So that may be your trouble.

Give us a little more info to work with and maybe we can get it straightened out.

BTW Just because it's GPG output that you want to paste doesn't really make this a 'security' question ;-)

Enjoy!
--- Cerbere
 
Old 10-06-2004, 04:24 PM   #3
max-ebb
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for the feedback,
first off, im aware that this might be a more general question, yet i though maybe within GPG there would be a command that would do what I need.
I'm using Damn Small Linux 8.1.1 live CD on a Dell Inspiron 4100 laptop.
Browsers, Dillo and Opera.
I have tried to use keys, like Ctrl+C and Ctrl+V or highlight the text and just try to paste it using Ctrl+V.
It seemed odd to me too that it does not work.
I'm trying to set up a small CD with the same funtionality of Knoppix MiB, without using KDE applications.
So far GPG worked wonderfully, just this little thing that bugs me cos the text-to-clipboard function is really cool.
Hope u can gimme some tips.
thanks. Max
 
Old 10-06-2004, 06:51 PM   #4
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 248

Rep: Reputation: 36
Don't forget wxpaste and wxcopy (if you have them installed). Some times they are quite useful for moving stuff in and out of cutbuffers. Just make sure that you use the correct numbered cutbuffer, or you'll end up copying to one and pasteing from another which won't work. If you can write on stdout, you can pipe to wxcopy. wxpaste --cutbuffer 0 dumps the stuff that you enter by highlight & drag with the mouse. This may or may not show up in xclipboard, but it's there. Try experimenting with them a bit and see what you get. There's cutbuffers 0-7; I think those are default. wxcopy & wxpaste I belive come with the WindowMaker window manager for X11.
Hopefully, you can pipe into a cutbuffer with wxcopy, then use your mouse button #2 or the app's paste function to paste.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 09:16 AM
vt text terminal offworld Linux - Networking 10 01-16-2006 01:26 PM
can't enter text in terminal lpn1160 Linux - General 4 11-04-2005 02:39 AM
ls to text in terminal oldstinkyfish Linux - Software 2 12-04-2004 04:18 AM
Text editor with GPG support wanted Bogdan Linux - Software 1 09-01-2004 08:16 AM


All times are GMT -5. The time now is 09:41 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration