AddStorageItem

Encrypts the specified string with specified key and adds it to storage to the specified address.

Syntax

function AddStorageItem(aStorageURL: string; aStorageKey: string;
  aCryptoKey: string; aData: string; aStoragePass: string = ''): integer;

Parameters

  • aStorageURL
    • type: string
    • functions: storage adress
  • aStorageKey
    • type: string
    • functions: identification key
  • aCryptoKey
    • type: string
    • functions: key for encryption / decryption
  • aData
    • type: string
    • functions: string to be added to the storage
  • aStoragePass
    • type: string
    • functions: password to access the storage

Return value

  • type: integer
  • functions: ID of added data

Notes

Examples

  1. //Add the element into the storage
    var NewID := AddStorageItem('http://mysite.ru/storage.php', 'requests', 'mycrypto',
      'MySecretString', 'mystoragepass');