<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; JS (binary->HEX, HEX->binary)]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14224&amp;type=atom" />
	<updated>2018-10-09T17:35:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14224</id>
		<entry>
			<title type="html"><![CDATA[Re: JS (binary->HEX, HEX->binary)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129127#p129127" />
			<content type="html"><![CDATA[<p><strong>Xameleon</strong><br />Большое спасибо. Как-то даже и не заметил, что то же самое можно сделать стандартными средствами Windows <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> И гораздо проще!!!</p>]]></content>
			<author>
				<name><![CDATA[babel45]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39570</uri>
			</author>
			<updated>2018-10-09T17:35:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129127#p129127</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JS (binary->HEX, HEX->binary)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129118#p129118" />
			<content type="html"><![CDATA[<p><strong>babel45</strong>, а что Вам мешает использовать подручные утилиты для этих целей ? В сообщениях, по Вашей ссылке, есть примеры использования утилиты <strong>certutil</strong>.</p><div class="codebox"><pre><code>
certutil -encodehex source destination
certutil -decodehex source destination
</code></pre></div><p>Подробнее про <strong>encodehex</strong><br /></p><div class="codebox"><pre><code>certutil -encodehex -?</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Xameleon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=8836</uri>
			</author>
			<updated>2018-10-09T08:39:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129118#p129118</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JS (binary->HEX, HEX->binary)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=129114#p129114" />
			<content type="html"><![CDATA[<p>Добрый день.<br />Нашел <a href="https://superuser.com/questions/732874/encode-binary-file-as-text-on-windows-2000-using-built-in-tools">js-скрипт</a>, который преобразует двоичные файлы в их шестнадцатеричный код и обратно.<br />Синтаксис команды для выполнения скрипта следующий:<br />cscript /nologo /e:jscript HexEncoder.js /e &quot;binary file&quot; &quot;output file&quot;<br />cscript /nologo /e:jscript HexEncoder.js /d &quot;encoded file&quot; &quot;binary file&quot;<br />Что касается прямого преобразования, то скрипт прекрасно отрабатывается.<br />А вот наоборот, к сожалению, ничего не получается. Выскакивает ошибка:<br />E:\powershell\hexencoder&gt;cscript /nologo /e:jscript HexEncoder.js /d &quot;E:\powershell\hexencoder\1.txt&quot; &quot;E:\powershell\hexencoder\EncryptDecrypt.zip&quot;<br />E:\powershell\hexencoder\HexEncoder.js(158, 13) Ошибка выполнения Microsoft JScript: Недопустимый вызов или аргумент процедуры<br />Видимо, в коде скрипта автор чего-то недоработал.<br />Если кто сможет разобраться сходу с правильным решением, помогите, пожалуйста.<br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[babel45]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39570</uri>
			</author>
			<updated>2018-10-08T20:06:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=129114#p129114</id>
		</entry>
</feed>
