[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  VBscript
. . -> [Subject]  crypt function?

crypt function?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Tsunami   USA  (204 posts)  [Biography] bio
Date Wed 10 Nov 2004 12:58 PM (UTC)
Message
Is there a crypt function in VBscript, a la Perl?
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Wed 10 Nov 2004 07:48 PM (UTC)
Message
Do you need it to be comparable to the crypt function? (be able to be used with each other?) or are you just looking for some way to store passwords securely?

No, there is no innate crypt function. But depending on what you're doing, you have a few alternatives. From COM objects, to coding your own.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Thu 11 Nov 2004 01:27 AM (UTC)
Message
I would Google for "aes vbscript". I found 12,800 matches doing that, one of the first few would show the idea.

Tempted as I am to add encryption to MUSHclient, various governments ban exporting products with encryption in them, which therefore slows down anyone who wants to use it by about 5 minutes while they find a site in a country that *does* allow encryption to be exported.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #3 on Thu 11 Nov 2004 08:08 AM (UTC)
Message
I don't think Rijndael is subject to restrictions (or was it RC4)? Anyway, if you can find one on a site on a country outside the US and if Australia allows encryption exports, you're fine.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #4 on Thu 11 Nov 2004 08:09 AM (UTC)
Message
By the way, why add encryption? Isn't it a bit futile?

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

Posted by Tsunami   USA  (204 posts)  [Biography] bio
Date Reply #5 on Thu 11 Nov 2004 12:53 PM (UTC)
Message
I don't need a crypt funtion identical to perl, just something that can crypt text so it can't be reversed, and that will return the same crypt given the same text and salt.
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] bio
Date Reply #6 on Thu 11 Nov 2004 03:50 PM (UTC)
Message
That's a hash. It should be easy to code a simple one, or to find MD5 sources for VB on the net.

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Fri 12 Nov 2004 07:32 PM (UTC)
Message
If you want to simply hash text so it can't be reversed, as you said, then MUSHclient has such a function built in.


http://www.gammon.com.au/scripts/doc.php?function=Hash

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


21,629 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]