Hi
I'm looking for a way to easily encrypt and decrypt a text file. It should do the following:
- On open, ask for the passphrase and decrypt the document - Display the document plain text, allow edits - On save, automatically encrypt the document, but leave the unencrypted doc open.
I'd use this to store passwords.
Any ideas?
Thanks a lot!
André
On 29. May 2007, at 13:53, Bonhôte André wrote:
I'm looking for a way to easily encrypt and decrypt a text file. It should do the following:
- On open, ask for the passphrase and decrypt the document
- Display the document plain text, allow edits
- On save, automatically encrypt the document, but leave the
unencrypted doc open.
I'd use this to store passwords.
Any ideas?
This would require implicitly invoked import/export code, which TM does not support.
One popular option for sensitive files is to store them on an encrypted disk image.
On May 29, 2007, at 3:34 PM, Allan Odgaard wrote:
On 29. May 2007, at 13:53, Bonhôte André wrote:
I'm looking for a way to easily encrypt and decrypt a text file. It should do the following:
- On open, ask for the passphrase and decrypt the document
- Display the document plain text, allow edits
- On save, automatically encrypt the document, but leave the
unencrypted doc open.
I'd use this to store passwords.
Any ideas?
This would require implicitly invoked import/export code, which TM does not support.
One popular option for sensitive files is to store them on an encrypted disk image.
I use 1Passwd (anything in the browser) and Yojimbo (anything else) nowadays for it and a hardcopy of the most important stuff stored outside the apartment ;)
Niels
Hi
On 29.05.2007, at 15:41, Niels Kobschätzki wrote:
One popular option for sensitive files is to store them on an encrypted disk image.
I use 1Passwd (anything in the browser) and Yojimbo (anything else) nowadays for it and a hardcopy of the most important stuff stored outside the apartment ;)
The disk image solution is far too slow. And the problem with 1Passwd and Yojimbo is: two tools. A while ago I have written a short shell script which does this job I described. I can, of course, use mate instead of vim to edit it, but that's not really what I'd wish.
Thanks for the replies
André
how about use the AES encrypt/decrypt Text bundle actions, and bind the encrypt action to cmd-S for a certain type of text-files (let's say with .sec extension)? Not as automatic, but I guess you could modify the commands a bit and have the AES decryption module store the password in a temporary global variable, and have the encryption command triggered by cmd-S use that password...
So u open the .sec file, hit a key combination to decrypt it, and when u save it (using cmd-S) it encrypts using the same pass, saves, and u have to decrypt it again before using it (could also use the same pass if it exists..?)
That's as smooth as I can get it, at least in theory... maybe someone cares to elaborate a bit? Keeping a plain text file would be easier than managing an encrypted disk image, but I'm not sure how easily the global variable could be accessed...
On May 29, 2007, at 2:53 PM, Bonhôte André wrote:
Hi
I'm looking for a way to easily encrypt and decrypt a text file. It should do the following:
- On open, ask for the passphrase and decrypt the document
- Display the document plain text, allow edits
- On save, automatically encrypt the document, but leave the
unencrypted doc open.
I'd use this to store passwords.
Any ideas?
Thanks a lot!
André ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 29/05/07, Bonhôte André andre@bonhote.org wrote:
I'm looking for a way to easily encrypt and decrypt a text file. It should do the following:
[...]
I'd use this to store passwords.
I have a couple of commands that I've setup for encrypting/decrypting emails with GPG. With a bit of tweaking I'm sure you could get them to play nicely with plain text (the main difference is that they currently quote the text with '>' characters so that it's ready to send a reply).
They're fairly similar to the AES encryption commands, that I ripped off when I started writing them. I bound them to Ctrl-Shift-Cmd-P.
Should I post them to the list?
Sure, you should :)
2007/6/6, Graham Ashton graham.ashton@gmail.com:
On 29/05/07, Bonhôte André andre@bonhote.org wrote:
I'm looking for a way to easily encrypt and decrypt a text file. It should do the following:
[...]
I'd use this to store passwords.
I have a couple of commands that I've setup for encrypting/decrypting emails with GPG. With a bit of tweaking I'm sure you could get them to play nicely with plain text (the main difference is that they currently quote the text with '>' characters so that it's ready to send a reply).
They're fairly similar to the AES encryption commands, that I ripped off when I started writing them. I bound them to Ctrl-Shift-Cmd-P.
Should I post them to the list?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate