Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ VBscript ➜ crypt function?

crypt function?

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


Posted by Tsunami   USA  (204 posts)  Bio
Date Wed 10 Nov 2004 12:58 PM (UTC)
Message
Is there a crypt function in VBscript, a la Perl?
Top

Posted by Flannel   USA  (1,230 posts)  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.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  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
Top

Posted by Poromenos   Greece  (1,037 posts)  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!
Top

Posted by Poromenos   Greece  (1,037 posts)  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!
Top

Posted by Tsunami   USA  (204 posts)  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.
Top

Posted by Poromenos   Greece  (1,037 posts)  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!
Top

Posted by Nick Gammon   Australia  (23,120 posts)  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
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.


24,216 views.

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

Go to topic:           Search the forum


[Go to top] top

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