ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 15th, 2003, 09:23 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
vba text encryption method...

Ok guys & gals... I'm wanting a way to encrypt text to be sent in an email with vba, working on a small semi secure program for work, any ideas or suggestions? I've tried googling it but have had limited results... I have a method that I have written now, but I'd like to see others out there if possible...

Any suggestions welcome

Reply With Quote
  #2  
Old July 16th, 2003, 12:14 AM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
If I were working on a project of this sort I would write a DLL wrapping the funtionality of GnuPG.

For those that do not know what PGP or GnuPG is here goes:

PGP was created as a facility to encrypt and decrypt text. It uses a public and private key. The private key is for the owner of the message to keep safe and private. The public key is the one that you give out to anyone you would like to view your messages.

This kep ensures that you are the true sender of the message. PGP ensures that a message or private key cannot be derived from the public key in any reasonable fashion.

GnuPG is the opensource clone (sort of) of PGP.

http://www.gnupg.org/

If you google long enough you may find that someone has already written a wrapper in your language of choice. I've noticed wrappers / libraries for Python and C# thus far.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #3  
Old July 16th, 2003, 01:00 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 34 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Thanks for the suggestion wil, I'll see what I can find for vba... that's the only language that I have available at work (sadly enough )

Reply With Quote
  #4  
Old July 16th, 2003, 01:25 AM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6
Re: vba text encryption method...

Quote:
Originally posted by nicat23
Ok guys & gals... I'm wanting a way to encrypt text to be sent in an email with vba, working on a small semi secure program for work, any ideas or suggestions? I've tried googling it but have had limited results... I have a method that I have written now, but I'd like to see others out there if possible...

Any suggestions welcome


Suggestion:

01. Represen data in a matrix format. For example, your message is " Hello there."
| H E L L |
| O T H |
| E R E . |

Transform the content (Row to colums)
So, above matrix will become:
| H O E |
| E R |
| L T E |
| L H . |

Now transmit this data.

02. Now convert this data at receipent end.

03. Above is the basic algorithm, now you can implement key using XOR to add extra complexity.

Thank You.

Reply With Quote
  #5  
Old July 16th, 2003, 02:51 AM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
Another suggestion is to write something like this:

First determine a maximum fixed message length.
This should be a high number as you need to think about what the longest message might be.

For simplicity in this example lets use 20 characters.

1. Find length of message
2. Attach length to end of message string
3. Left Pad the string with a character of your choice forcing the length to exactly the number of the max characters you chose.

Example:

mystring = "test message"
mystring = "test message12"
mystring = "********test message12"
( now, of course the string length is maxlength + 2 )
You also want to pad your numbers in case the length is something like 6, you would take on 06 to the end of the string as opposed to 6.

Now scramble the message using any variation you can come up with.

( descrambling is easy... just scramble them with your same algorithm backwards... just don't do too many iterations or you will get confused ).

Now do a simple base64 encryption on the string... you can find a vb module for this on the net.

I'd suggest you open Visual basic, add the module to the project, then compile as DLL to use it in your vba project.

If you can't find this module let me know and I will send it to you.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > vba text encryption method...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT