blitzbasic

Author Topic: ENCRYPT$ quick question  (Read 564 times)

Offline bigsofty

  • Prof. Inline
  • *****
  • Posts: 1965
    • View Profile
ENCRYPT$ quick question
« on: 2011-May-16 »
What 128bit encryption algorithm does ENCRYPT$ use?
“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *****
  • Posts: 10277
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: ENCRYPT$ quick question
« Reply #1 on: 2011-May-16 »
Blowfish.

Offline bigsofty

  • Prof. Inline
  • *****
  • Posts: 1965
    • View Profile
Re: ENCRYPT$ quick question
« Reply #2 on: 2011-May-16 »
Thanks Gernot, that's just the ticket! :D
“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Online MrTAToad

  • HelpEditors
  • Prof. Inline
  • ****
  • Posts: 5330
  • Its me!
    • View Profile
    • Un-Map.com
Re: ENCRYPT$ quick question
« Reply #3 on: 2011-May-17 »
Blowfish is very secure, although Twofish is more "modern"

Offline Dark Schneider

  • Mr. Polyvector
  • ***
  • Posts: 128
    • View Profile
Re: ENCRYPT$ quick question
« Reply #4 on: 2011-Aug-11 »
Blowfish.

The standard one that takes from 1-448 bits for key or one key long sized (i.e. to 128-bit)?, this is if it autofills or cuts the code$ param.

Online MrTAToad

  • HelpEditors
  • Prof. Inline
  • ****
  • Posts: 5330
  • Its me!
    • View Profile
    • Un-Map.com
Re: ENCRYPT$ quick question
« Reply #5 on: 2011-Aug-11 »
I believe its a 128-bit algorithm...

Offline Dark Schneider

  • Mr. Polyvector
  • ***
  • Posts: 128
    • View Profile
Re: ENCRYPT$ quick question
« Reply #6 on: 2011-Aug-13 »
I talk about this:
http://www.firstbackup.com/Product/Features/blowfish.asp
Quote
Blowfish supports key lengths of 32 to 448 bits
Here http://en.wikipedia.org/wiki/Blowfish_%28cipher%29 says
Quote
variable key length from 1 bit up to 448 bits
But, 1-bit?  :blink:

It is a standard to use 128-bit, but it would be good to know how GLBasic uses it, if it uses a fixed or variable length, if is fixed sized then it "fills" or "cuts" our code$ param, so if is fixed to 128-bit, is important to know because to make full use of it we should use a 16 characters length (128/8 bytes per character), but if it is variable then we can use any code$ up to 56 characters long.

Update: Well I think it uses a variable key length form, I have tested it with a 31-long code$, for encrypt and with the same 30-long one (removed the last character) and it can't decrypt, so it is using the full 248-bit of the code$ param to encrypt.
« Last Edit: 2011-Aug-13 by Dark Schneider »

Offline bigsofty

  • Prof. Inline
  • *****
  • Posts: 1965
    • View Profile
Re: ENCRYPT$ quick question
« Reply #7 on: 2011-Aug-15 »
Here's a silly question, if I use two keys to encrypt it twice, does that counts as 256bit?  :S
“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline bigsofty

  • Prof. Inline
  • *****
  • Posts: 1965
    • View Profile
Re: ENCRYPT$ quick question
« Reply #8 on: 2011-Aug-15 »
Ah, I see, cool to know, thank you.
“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Online MrTAToad

  • HelpEditors
  • Prof. Inline
  • ****
  • Posts: 5330
  • Its me!
    • View Profile
    • Un-Map.com
Re: ENCRYPT$ quick question
« Reply #9 on: 2011-Aug-15 »
There is no effective cryptanalysis on the full-round version of Blowfish known publicly as of 2011, although Twofish is recommended instead...

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: ENCRYPT$ quick question
« Reply #10 on: 2011-Aug-15 »
We used Twofish for part of our CCA encryption until PCI standards moved the goalposts and it wasn't cool anymore. So AES or TDes instead. Although I use OpenSSL (good for MD5 and a boat load of other algorithms) on our Unix machines these days rather than messing about integrating C routines.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.