addStorageItem
Encrypts the specified string with specified key and adds it to storage to the specified address.
Syntax
addStorageItem = function(aStorageURL, aStorageKey, aCryptoKey, aData, aStoragePass);
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
Returned value
- functions: ID of added data
Examples
//Add the element into the storage var newID := addStorageItem('http://mysite.ru/storage.php', 'requests', 'mycrypto', 'MySecretString', 'mystoragepass');