Re: Converting Commodore text files to The Numerica Format?




<a7yvm109gf5d1@xxxxxxxxxxx> wrote ...

> Well, the "encryption" is still trivial if you just increment the key
> byte for every character. The fun starts if you use a more complex
> algorithm for the key, like a LFSR. You can implement this in a few
> lines of boolean logic. Of course, key distribution is still a problem.
> But as a way to have fun with a few lines of BASIC on a Commie, it
> sounds like something to do this weekend if it rains!

Yep, XOR is a good way to encrypt a file using a BASIC program. Not too long
ago I ported a QBasic encryption program to C128 BASIC 7.0 If Paul is
interested, I can email him a copy of the C128 PRG file.

Encryption is really pretty secure using the program I converted. A password
supplied by the user is encrypted by a key coded into the program before use.
Then after each use the password is encrypted again. For example, is an 8
character password is used, the password is re-encrypted after each 8
characters from the file are processed.

De-bugging the program drove me crazy, until I realized that some of the
characters in the encrypted file were CHR$(0) causing decryption to fail.
Easy to fix once I figured out what the problem was. (QBasic does not have
the C= BASIC CHR$(0) bug.)

Oh well, enough rambling. Paul, let me know if you want me to email a copy
of the BASIC 7.0 program to you.
--
Best regards,

Sam Gillett

Change is inevitable,
except from vending machines!




.



Relevant Pages

  • Re: Help secure my data (They will steal my drive)
    ... but it supports strong password-based encryption and can be ... printable ascii characters about 6.5 bit per character. ... In case your passphrase is not trivial it's much more likely an attacker ... will try to recover plaintext from swap files/virtual memory and from ...
    (sci.crypt)
  • [NT] NewsReactor Encryption Scheme Cracked
    ... encryption. ... Each character is simply 64 characters up the ASCII table from ... The information in this bulletin is provided "AS IS" without warranty of any kind. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
    (Securiteam)
  • Re: Defeating keyloggers with encrypted one time passwords (a patent spoiler?)
    ... > TIME PASSWORDS and more precisely an A4 sized paper full of them and ... > but just so little that the user can easily remove the encryption. ... > - remove two first character of each password ... The paper method also works well without the decryption instructions. ...
    (sci.crypt)
  • Re: Encryption algorithm
    ... > character alphanumeric string in a COBOL program. ... consider these "obscuring" rather than "encryption", ... that you run the string through the same algorithm to encode and decode. ... This has the advantage of working with pretty much any character you'd ...
    (comp.lang.cobol)
  • Re: Converting Commodore text files to The Numerica Format?
    ... >> byte for every character. ... The fun starts if you use a more complex ... > ago I ported a QBasic encryption program to C128 BASIC 7.0 If Paul is ... > Encryption is really pretty secure using the program I converted. ...
    (comp.sys.cbm)