News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Encryption/Decryption Program

Started by cman, May 06, 2010, 10:41:39 PM

Previous topic - Next topic

cman

Anybody written an Encryption / Decryption program for text files? If so , could you post the code? Thanks!  :bg

qWord

FPU in a trice: SmplMath
It's that simple!

dedndave

seems like about a year ago, they were playing with base 64 encoding - try the forum search tool
a lot depends on what kind of security you need
perhaps you just want a text file-packer - fast - simple code - but not very secure
i have routines for encoding/encrypting/decoding numeric strings
but they weren't really intended for non-numeric text

clive

Does the output have to be text/ASCII? Encrypting/Decrypting text files works pretty much the same as binary ones.

I would typically recommend compressing data, text or otherwise, before encrypting it. RC4 or AES are both worth considering.
It could be a random act of randomness. Those happen a lot as well.

cman

Thanks for the information! I am just looking for a application to encrypt text files on my drive ( I know many commercial and free applications are available as well as some included with Windows , but I thought it would be interesting to write one of my own ). Thanks for your input!  :U

Ossa

I wrote this back in 2004 - i.e. when I was leaning ASM - as a result it is not optimised at all, it has no GUI (it has some console options), it doesn't hash the password before using it to generate the key sequence, and all sorts of other bad stuff... it does, however, work. In addition, it uses RC6... I am unsure about the legal aspects of using RC6 wikipedia has the following to say:

Quote
As RC6 has not been selected for the AES, it is not guaranteed that RC6 is royalty-free. As of January 2007[update], a web page on the official web site of the designers of RC6, RSA Laboratories, states the following:

Quote"We emphasize that if RC6 is selected for the AES, RSA Security will not require any licensing or royalty payments for products using the algorithm".

The emphasis on the word "if" suggests that RSA Security Inc. may now require licensing and royalty payments for any products using the RC6 algorithm. RC6 is a patented encryption algorithm (U.S. Patent 5,724,428 and U.S. Patent 5,835,600).

and, a quick check of the RSA website has nothing more up-to-date regarding licensing that I can see. I'll therefore assume that it is acceptable to have it for personal use and upload it.

Ossa
Website (very old): ossa.the-wot.co.uk

cman