Quantcast
Channel: Gemalto Sentinel Customer Discussions
Viewing all articles
Browse latest Browse all 1619

Re : Sentinel HASP SL: how to add data to the RO memory without erasing the previous data

$
0
0
Dear Stefano,

Esto es posible indirectamente pero cargando la data desde un archivo XML con el texto codificado en base64. Puede usar un conversor online para convertir de hexadecimal a base64: http://tomeko.net/online_tools/hex_to_base64.php?lang=en 

Ejemplo de un archivo data.xml para modificar la memoria RO:

This is possible indirectly, loading the data from an XML file with the base64 encoded text. You can use an online converter to convert from hex to base64. Try http://tomeko.net/online_tools/hex_to_base64.php?lang=en

Example of a data.xml file to modify the memory RO:
  1. <?xml version="1.0" standalone="yes"?>
  2. <memories>
  3.   <memory fileID="1" name="Read/Write Memory (HASP_FILEID_RW)">
  4.   </memory>
  5.   <memory fileID="2" name="Read-Only Memory (HASP_FILEID_RO)">
  6.     <segments>
  7.       <segment>
  8.         <offset>0x0000</offset>
  9.         <length>10</length>
  10.         <color>#FF9900</color>
  11.         <name>MyField1</name>
  12.         <description>Field1 description</description>
  13.         <free_memory>true</free_memory>
  14.         <base64data>aBc6QzQ1T2hanQ==</base64data>
  15.       </segment>
  16.       <segment>
  17.         <offset>0x000A</offset>
  18.         <length>4</length>
  19.         <color>#FFCCCC</color>
  20.         <name>MyField2</name>
  21.         <description>Field2 description</description>
  22.         <free_memory>true</free_memory>
  23.         <base64data>nXg6t8==</base64data>
  24.       </segment>     
  25.     </segments>
  26.   </memory>
  27. </memories>
Regards,

Viewing all articles
Browse latest Browse all 1619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>