Re: [WebDNA] SHA-512 How To Do It
This WebDNA talk-list message is from 2014
It keeps the original formatting.
numero = 111556
interpreted = N
texte = If you are not in a sandbox then:[DOS]c:&&cd \&&cd program files\base64&&base64.exe -d [DOCSPATH][DC-THISFILE] [DOCSPATH][DC-THISFILE].pdf&&[/DOS]Would work, I always had problems with CR so would start this way and =then simplify it if it works.RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 29 Aug 2014, at 7:29 pm, Terry Nair
wrote:> Hi Stuart,>=20> Thanks mate. I did not know that the [DOS] tag had an inner element =called "> scriptid " which allows one to call a file. I always thought that =[DOS] tag> was very much like [Shell] tag ...no internal elements or parameters. =Where> did you get this from? It is not in the docs.>=20> For that matter, the online WedDNA docs had as an example .....=20>=20> [DOS]dir c:[/DOS]>=20> Sticking that in as is at the root of the server actually listed the =files> in the wwwroot directory and not the c: directory which command prompt> would. That is why I got lost.>=20> That said ....have not tried that yet ....could I create a text file =called> SHA512.bat in the root of www folder and called that file instead.>=20> Do not know what you mean by SANDBOX SCRIPTS ...sorry ....really slow =today.>=20> Thank Stuart .....TDn>=20>=20> -----Original Message-----> From: Stuart Tremain [mailto:webdna@idfk.com.au]=20> Sent: Friday, August 29, 2014 16:30> To: WebDNA Talk List> Subject: Re: [WebDNA] SHA-512 How To Do It>=20> Terri>=20> First of all get it to work in the command line.>=20> Then you will need to set it up in SANDBOX SCRIPTS>=20> This is what I did to decrypt Base64 files to pdf:>=20> c:&&> cd \&&> cd program files\base64&&> base64.exe -d [DOCSPATH][DC-THISFILE] [DOCSPATH][DC-THISFILE].pdf&&>=20>=20>=20> You can see the paths in the process start at c: change to the \ =directory> change to the program's directory run the command>=20>=20> So give it a name in SANDBOX SCRIPTS, SHA512 for example and then on =the> page>=20> [TEXT]DOCSPATH=3Dpath-to-the-file[/TEXT]> [TEXT]DC-THISFILE=3Dname-of-the-file.txt[/TEXT]> [TEXT]QUIET=3D[DOS scriptid=3D SHA512][/DOS][/TEXT]>=20> I always put it in a text var as sometime the return can cause =problems with> the HTML>=20>=20> Regards>=20> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>=20>=20>=20>=20> On 29 Aug 2014, at 6:13 pm, Terry Nair wrote:>=20>> Thanks for helping and sorry to be a bother. Have tried the link =below=20>> and using [DOS] tag, I think I screwed up somewhere.>>=20>> This is the command I want executed ....>>=20>> HashConsole.exe -t "password">>=20>> I know you are the guru of sorts on Windows in the past ....so could=20=>> you tell me how to use [DOS] tag correctly in this case.>>=20>> Thanks mate ....TDn>>=20>> -----Original Message----->> From: Stuart Tremain [mailto:webdna@idfk.com.au]>> Sent: Friday, August 29, 2014 15:49>> To: WebDNA Talk List>> Subject: Re: [WebDNA] SHA-512 How To Do It>>=20>>=20>> http://securityxploded.com/hash-console.php>>=20>>=20>> Regards>>=20>> Stuart Tremain>> IDFK Web Developments>> AUSTRALIA>> webdna@idfk.com.au>>=20>>=20>>=20>>=20>> On 29 Aug 2014, at 5:43 pm, Terry Nair wrote:>>=20>>> Thanks so much Donovan ...;-) It works great on CentosOS, exactly as=20=>>> you had it.>>>=20>>> Now I need a workaround for Windows Server 2003. Any takers?>>>=20>>> Cheers TDn>>>=20>>> -----Original Message----->>> From: Donovan Brooke [mailto:dbrooke@euca.us]>>> Sent: Friday, August 29, 2014 10:05>>> To: talk@webdna.us>>> Subject: Re: [WebDNA] SHA-512 How To Do It>>>=20>>> Hi Terry,>>>=20>>> [shell]echo -n foobar | sha512sum[/shell]>>>=20>>> This should work on Debian-based linux.>>> For CentOS, you may have to use another checksum command. but the=20>>> format should be the same.>>>=20>>> Sincerely,>>> Donovan>>>=20>>>=20>>>=20>>>=20>>> On Aug 28, 2014, at 8:40 PM, Terry Nair =wrote:>>>=20>>>> Hi All,>>>>=20>>>> Need some help on encryption. I need to encrypt a given string =using>>>> SHA-512 on a WebDNA server (one is Windows Server 2003 and the =other=20>>>> Centos). How can I do it via WebDNA ....the [encrypt] tag does not=20=>>>> facilitate this format?>>>>=20>>>> If I cannot do it directly via WebDNA, is there any other clever =way=20>>>> to get it done ....maybe using [shell] or [dos] through an =installed=20>>>> program. I am in the dark here. Has anyone written a [function] to=20=>>>> generate this using WebDNA?>>>>=20>>>> Thank for the assist folks.>>>>=20>>>> Cheers Terry Nair>>>>=20>>>> --------------------------------------------------------->>>> This message is sent to you because you are subscribed to the=20>>>> mailing list .>>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us>>>> Bug Reporting: support@webdna.us>>>=20>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to the =mailing=20>>> list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> Bug Reporting: support@webdna.us>>>=20>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to the =mailing=20>>> list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> Bug Reporting: support@webdna.us>>=20>> --------------------------------------------------------->> This message is sent to you because you are subscribed to the mailing=20=>> list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>>=20>> --------------------------------------------------------->> This message is sent to you because you are subscribed to the mailing=20=>> list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to the mailing =list> .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
If you are not in a sandbox then:[DOS]c:&&cd \&&cd program files\base64&&base64.exe -d [DOCSPATH][DC-THISFILE] [DOCSPATH][DC-THISFILE].pdf&&[/DOS]Would work, I always had problems with CR so would start this way and =then simplify it if it works.RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 29 Aug 2014, at 7:29 pm, Terry Nair wrote:> Hi Stuart,>=20> Thanks mate. I did not know that the [DOS] tag had an inner element =called "> scriptid " which allows one to call a file. I always thought that =[DOS] tag> was very much like [shell] tag ...no internal elements or parameters. =Where> did you get this from? It is not in the docs.>=20> For that matter, the online WedDNA docs had as an example .....=20>=20> [DOS]dir c:[/DOS]>=20> Sticking that in as is at the root of the server actually listed the =files> in the wwwroot directory and not the c: directory which command prompt> would. That is why I got lost.>=20> That said ....have not tried that yet ....could I create a text file =called> SHA512.bat in the root of www folder and called that file instead.>=20> Do not know what you mean by SANDBOX SCRIPTS ...sorry ....really slow =today.>=20> Thank Stuart .....TDn>=20>=20> -----Original Message-----> From: Stuart Tremain [mailto:webdna@idfk.com.au]=20> Sent: Friday, August 29, 2014 16:30> To: WebDNA Talk List> Subject: Re: [WebDNA] SHA-512 How To Do It>=20> Terri>=20> First of all get it to work in the command line.>=20> Then you will need to set it up in SANDBOX SCRIPTS>=20> This is what I did to decrypt Base64 files to pdf:>=20> c:&&> cd \&&> cd program files\base64&&> base64.exe -d [DOCSPATH][DC-THISFILE] [DOCSPATH][DC-THISFILE].pdf&&>=20>=20>=20> You can see the paths in the process start at c: change to the \ =directory> change to the program's directory run the command>=20>=20> So give it a name in SANDBOX SCRIPTS, SHA512 for example and then on =the> page>=20> [text]DOCSPATH=3Dpath-to-the-file[/TEXT]> [text]DC-THISFILE=3Dname-of-the-file.txt[/TEXT]> [text]QUIET=3D[DOS scriptid=3D SHA512][/DOS][/TEXT]>=20> I always put it in a text var as sometime the return can cause =problems with> the HTML>=20>=20> Regards>=20> Stuart Tremain> IDFK Web Developments> AUSTRALIA> webdna@idfk.com.au>=20>=20>=20>=20> On 29 Aug 2014, at 6:13 pm, Terry Nair wrote:>=20>> Thanks for helping and sorry to be a bother. Have tried the link =below=20>> and using [DOS] tag, I think I screwed up somewhere.>>=20>> This is the command I want executed ....>>=20>> HashConsole.exe -t "password">>=20>> I know you are the guru of sorts on Windows in the past ....so could=20=>> you tell me how to use [DOS] tag correctly in this case.>>=20>> Thanks mate ....TDn>>=20>> -----Original Message----->> From: Stuart Tremain [mailto:webdna@idfk.com.au]>> Sent: Friday, August 29, 2014 15:49>> To: WebDNA Talk List>> Subject: Re: [WebDNA] SHA-512 How To Do It>>=20>>=20>> http://securityxploded.com/hash-console.php>>=20>>=20>> Regards>>=20>> Stuart Tremain>> IDFK Web Developments>> AUSTRALIA>> webdna@idfk.com.au>>=20>>=20>>=20>>=20>> On 29 Aug 2014, at 5:43 pm, Terry Nair wrote:>>=20>>> Thanks so much Donovan ...;-) It works great on CentosOS, exactly as=20=>>> you had it.>>>=20>>> Now I need a workaround for Windows Server 2003. Any takers?>>>=20>>> Cheers TDn>>>=20>>> -----Original Message----->>> From: Donovan Brooke [mailto:dbrooke@euca.us]>>> Sent: Friday, August 29, 2014 10:05>>> To: talk@webdna.us>>> Subject: Re: [WebDNA] SHA-512 How To Do It>>>=20>>> Hi Terry,>>>=20>>> [shell]echo -n foobar | sha512sum[/shell]>>>=20>>> This should work on Debian-based linux.>>> For CentOS, you may have to use another checksum command. but the=20>>> format should be the same.>>>=20>>> Sincerely,>>> Donovan>>>=20>>>=20>>>=20>>>=20>>> On Aug 28, 2014, at 8:40 PM, Terry Nair =wrote:>>>=20>>>> Hi All,>>>>=20>>>> Need some help on encryption. I need to encrypt a given string =using>>>> SHA-512 on a WebDNA server (one is Windows Server 2003 and the =other=20>>>> Centos). How can I do it via WebDNA ....the [encrypt] tag does not=20=>>>> facilitate this format?>>>>=20>>>> If I cannot do it directly via WebDNA, is there any other clever =way=20>>>> to get it done ....maybe using [shell] or [DOS] through an =installed=20>>>> program. I am in the dark here. Has anyone written a [function] to=20=>>>> generate this using WebDNA?>>>>=20>>>> Thank for the assist folks.>>>>=20>>>> Cheers Terry Nair>>>>=20>>>> --------------------------------------------------------->>>> This message is sent to you because you are subscribed to the=20>>>> mailing list .>>>> To unsubscribe, E-mail to: >>>> archives: http://mail.webdna.us/list/talk@webdna.us>>>> Bug Reporting: support@webdna.us>>>=20>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to the =mailing=20>>> list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> Bug Reporting: support@webdna.us>>>=20>>> --------------------------------------------------------->>> This message is sent to you because you are subscribed to the =mailing=20>>> list .>>> To unsubscribe, E-mail to: >>> archives: http://mail.webdna.us/list/talk@webdna.us>>> Bug Reporting: support@webdna.us>>=20>> --------------------------------------------------------->> This message is sent to you because you are subscribed to the mailing=20=>> list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>>=20>> --------------------------------------------------------->> This message is sent to you because you are subscribed to the mailing=20=>> list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to the mailing =list> .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>=20> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Stuart Tremain
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Custom WebCat Prefs ... (1997)
Search design (1997)
Adding Header Values with [SetHeader] (1998)
Mac webcatalog3_0_5b11 more dead lock throws (1999)
no global [username] or [password] displayed ... (1997)
sort problems....bug or brain fart? (1997)
Secure Server basic question... (1997)
Monthly Reports (2000)
select multiple 2 more cents (1997)
[WebDNA] sum in a search (2009)
More on the email templates (1997)
PhotoMill -> PhotoMaster (1997)
[price] maddness (2002)
WebCat2 - [format thousands] (1997)
New cart in ShoppingCarts (2003)
& not allowed in db by definition? (1999)
Using Currencies other than Dollars (1997)
Image browser / insert image (2006)
color and size options (1997)
[OT] Am I an Idiot? (2004)