Here it is - an RC4 implementation in for Revolution:
function rc4 pText, pKey
-- initialize
repeat with i = 0 to 255
put i into S1[i]
end repeat
put 0 into i
repeat with n = 0 to 255
add 1 to i
if i length(pkey) then put 1 into i
put charToNum(char i of pKey) into
On Tue, 10 Jul 2007 11:06:48 +0100, Mark Smith wrote:
Here it is - an RC4 implementation in for Revolution:
Thanks, Mark! But I ran your code using the test vectors at the
Wikipedia site (http://en.wikipedia.org/wiki/RC4) and I don't get the
same results that they identify you should get - I
Yes, the output is just a string of bytes (chars). In use, one would
probaly want to base64Encode it for transmission over the net, or
show the hex numbers.
I did test using the test vectors at
http://www.mozilla.org/projects/security/pki/nss/draft-kaukonen-
cipher-arcfour-03.txt
and
Yes Ken, I beleive you it's a rich language and being aware of all
it's functions, commands and messages may be very difficult.
Regarding RC4, its a propietary encryption algorrithm whose that
suddenly appeared published in the internet claiming to be the
original code, now the algorithm
Javier, there's a complete implementation (in pascal, I think) here:
http://www.4guysfromrolla.com/webtech/code/rc4.inc.html
It looks like it would be quite doable in Revolution.
The only bit-twiddling seems to be an xor - see bitXor in the docs.
Best,
Mark
On 9 Jul 2007, at 22:44, Javier
like to port it to Transcript.
Thank you again,
Javier
On Fri, 6 Jul 2007 12:16:55 -0400, Javier Miranda V. wrote:
Something is missing in this stack, it doesn't work, can you take a
look? It's supposed to convert a decimal number to Base64.
I tried 3 ways to do it with no success!
Javier
On Sun, 8 Jul 2007 10:28:09 -0400, Javier Miranda V. wrote:
Sorry for UL the stack will never happen again, and thank you very
much for your reply, I don't know how I missed base64encode!
Listen, Javier - I've been using Revolution since it began and MetaCard
before it for years, and I
Something is missing in this stack, it doesn't work, can you take a
look? It's supposed to convert a decimal number to Base64.
I tried 3 ways to do it with no success!

Saludos,
Javier
PS.: Later I would like to ask something about inter-application
communications and a couple of things
On Fri, 6 Jul 2007 12:16:55 -0400, Javier Miranda V. wrote:
Something is missing in this stack, it doesn't work, can you take a
look? It's supposed to convert a decimal number to Base64.
I tried 3 ways to do it with no success!
Javier, you aren't allowed to upload stacks to the list, only
:
Something is missing in this stack, it doesn't work, can you take a
look? It's supposed to convert a decimal number to Base64.
I tried 3 ways to do it with no success!
Saludos,
Javier
PS.: Later I would like to ask something about inter-application
communications and a couple of things about
When using base64Decode it seems that the '=' or '==' chars
at the end of a base64Encoded string are inconsequential. It
seems to make no difference if one '=', two '==' or none are at the
end of the string being decoded.
Is it safe to assume that any ending equal signs in a base64Encoded
ending equal signs in a base64Encoded
string do not have to be in that string when I decode it?
I've seen at least one base64 decode function (not Rev) where
stripping a final = does affect the output. So, without official
sanction from RunRev, I'd be wary of assuming the way Rev handles
being decoded.
Is it safe to assume that any ending equal signs in a base64Encoded
string do not have to be in that string when I decode it?
I've seen at least one base64 decode function (not Rev) where
stripping a final = does affect the output. So, without official
sanction from RunRev, I'd
At 1:47 PM +0200 5/29/06, sims wrote:
iow - does it make any difference if there is 1 or 2 equal signs at the end?
With strings I've tested here it doesn't seem to make a difference.
Never-mind... seems to be some divisible by 4 'thang'...I'm going
to try another approach to this small puzzle.
On May 29, 2006, at 6:54 AM, sims wrote:
At 1:47 PM +0200 5/29/06, sims wrote:
iow - does it make any difference if there is 1 or 2 equal signs
at the end?
With strings I've tested here it doesn't seem to make a difference.
Never-mind... seems to be some divisible by 4 'thang'...I'm going
on 7/24/04 8:06 PM, Mark Brownell at [EMAIL PROTECTED] wrote:
on 7/24/04 12:21 PM, Andre Garzia at [EMAIL PROTECTED] wrote:
Hi Folks,
I am trying to determine if a string is base64 encoded, I don't know in
advance if it will be or not, but I need to find out so that I can
decode
What about...
try
put base64decode(tStr) into tStr
catch errnum
return
end try
return tStr
/H
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
On Sunday, July 25, 2004, at 08:59 AM, [EMAIL PROTECTED] wrote:
What about...
try
put base64decode(tStr) into tStr
catch errnum
return
end try
return tStr
/H
That's a good idea. What about this for a string test? Base64 is 72
characters per line. I suppose you could test for the number
From: Mark Brownell
Subject: Re: anyone here got a function to find is a string is
base64 encoded?
Date: Sun, 25 Jul 2004 09:16:19 -0700
On Sunday, July 25, 2004, at 08:59 AM, [EMAIL PROTECTED] wrote:
What about...
try
put base64decode(tStr) into tStr
catch errnum
return
end
From: Andre Garzia
Subject: Re: anyone here got a function to find is a string is
base64 encoded?
Date: Sun, 25 Jul 2004 14:05:55 -0700
Wouter and All,
thank you very much for all your replies! Noew thanks to this
function, we can probe a string to see if it is Base64 encoded
On Sunday, July 25, 2004, at 12:14 PM, Wouter wrote:
But if false it still could be a base64Encodeded string.
And if true it could still be a 1 word unencoded string.
But hey this is a quick starter.
Greetings,
WA
Wouter gets me again.
Thanks Wouter.
I'm sure glad I don't need this testing.
Mark
On Sunday, July 25, 2004, at 01:19 PM, Wouter wrote:
Sorry,
Greetings,
WA
Wouter gets himself... grin!
Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
From: Mark Brownell
Subject: Re: anyone here got a function to find is a string is
base64 encoded?
Date: Sun, 25 Jul 2004 14:37:15 -0700
On Sunday, July 25, 2004, at 01:19 PM, Wouter wrote:
Sorry,
Greetings,
WA
Wouter gets himself... grin!
Mark
:-))
Some addition.
Just tested on some
is not in abcdefghijklmnopqrstuvwxyz1234567890+/= then
return false
May be there are other legal characters to test for, please add them
too.
Greetings,
WA
I just realized that empty space is not in the base64 character set. So
if you know that it's either plain text with words and spaces or
encoding then all
On Jul 25, 2004, at 3:05 PM, Andre Garzia wrote:
thank you very much for all your replies! Noew thanks to this
function, we can probe a string to see if it is Base64 encoded and add
it as a base64 item in the XML-RPC Lib!
Is this safe?
Dar
___
use
From: Mark Brownell
Subject: Re: anyone here got a function to find is a string is
base64 encoded?
Date: Sun, 25 Jul 2004 17:22:26 -0700
-- snip
if i is not in abcdefghijklmnopqrstuvwxyz1234567890+/= then return
false
May be there are other legal characters to test for, please add
From: Dar Scott
Subject: Re: anyone here got a function to find is a string is
base64 encoded?
Date: Sun, 25 Jul 2004 17:36:17 -0700
On Jul 25, 2004, at 3:05 PM, Andre Garzia wrote:
thank you very much for all your replies! Noew thanks to this
function, we can probe a string to see
. Integers will be put inside int tags, arrays
inside array or struct depending on the presence of keys or not.
One problem was how to detect a base64 param if they look like strings?
Now we can try to detect them and put well formed base64 inside
base64 param, were not encoding nor decoding it, we're
On Sunday, July 25, 2004, at 05:45 PM, Wouter wrote:
Hi Mark,
That's right.
But checking if each char i of the string is in
abcdefghijklmnopqrstuvwxyz1234567890+/= will take care of spaces.
I hope or am I wrong?
Wouter
I use base64 for making text and binary data websafe. Knowing what my
file
inside int tags, arrays
inside array or struct depending on the presence of keys or not.
One problem was how to detect a base64 param if they look like
strings? Now we can try to detect them and put well formed base64
inside base64 param, were not encoding nor decoding it, we're just
taking
From: Mark Brownell
Subject: Re: anyone here got a function to find is a string is
base64 encoded?
Date: Sun, 25 Jul 2004 18:02:48 -0700
-- snip
I use base64 for making text and binary data websafe. Knowing what my
file format is makes it easy by file types and file extensions
Hi Folks,
I am trying to determine if a string is base64 encoded, I don't know in
advance if it will be or not, but I need to find out so that I can
decode as needed. Any hint?
cheers
andre
--
Andre Alves Garzia 2004 BRAZIL
http://studio.soapdog.org
on 7/24/04 12:21 PM, Andre Garzia at [EMAIL PROTECTED] wrote:
Hi Folks,
I am trying to determine if a string is base64 encoded, I don't know in
advance if it will be or not, but I need to find out so that I can
decode as needed. Any hint?
cheers
andre
Hi Andre,
Is there any chance
to be able to see some pattern. In general,
it can't be done. Consider ABCD. Is it base64? Hard to tell.
Dar Scott
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
Dan Friedman wrote/ schreef:
Greetings once again...
I am using the base64Encode/Decode as a way to do a simple encryption. All
I really am trying to do is prevent the user from opening a text file in
text editor and see the data.
In doing this, I have experienced some problems on the
35 matches
Mail list logo