Is there a crypt function in VBscript, a la Perl?
crypt function?
Posted by Tsunami on Wed 10 Nov 2004 12:58 PM — 8 posts, 34,639 views.
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.
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.
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.
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.
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.
By the way, why add encryption? Isn't it a bit futile?
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.
That's a hash. It should be easy to code a simple one, or to find MD5 sources for VB on the net.
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