Adil El Farissi
db80781e7d
Basic implementation of AES encryption/decryption and respective OSSL functions
...
Add methods:
+ private static string AESEncryptString(string secret, string plainText, string ivString= null)
AES Encrypt a string using a password and a random or custom Initialization Vector.
+ private static string AESDecryptString(string secret, string encryptedText, string ivString= null)
AES Decrypt the string encrypted by AESEncryptString with the same password and ivString used in the encryption.
Methods implementations:
+ Util.AESEncrypt(string secret, string plainText)
+ Util.AESDecrypt(string secret, string encryptedText)
+Util.AESEncryptTo(string secret, string plainText, string ivString)
+ Util.AESDecryptFrom(string secret, string encryptedText, string ivString)
OSSL functions as first case of use:
+ osAESEncrypt(string secret, string plainText)
+ osAESDecrypt(string secret, string encryptedText)
+ osAESEncryptTo(string secret, string plainText, string ivString)
+ osAESDecryptFrom(string secret, string encryptedText, string ivString)
LSL script example:
<pre><code>
string plainText = "Hello World :)";
string secret = "#!qUeRtY$@123^456€!#";
default
{
touch_start(integer i)
{
string encryptedText = osAESEncrypt(secret, plainText);
llOwnerSay("\nEncrypted with osAESEncrypt:\n"+ encryptedText);
string decryptedText = osAESDecrypt(secret, encryptedText);
llOwnerSay("\nDecrypted with osAESDecrypt:\n"+ decryptedText);
// Encription / Decription with custom Initialization Vector.
string ivString = (string)llGetOwner() /* +"_"+ llGenerateKey() */;
string encryptedToText = osAESEncryptTo(secret, plainText, ivString);
llOwnerSay("\nEncrypted with osAESEncryptTo:\n"+ encryptedToText);
string decryptedFromText = osAESDecryptFrom(secret, encryptedToText, ivString);
llOwnerSay("\nDecrypted with osAESDecryptFrom:\n"+ decryptedFromText);
}
}
</code></pre>
Web Rain :)
2024-02-23 21:14:33 +00:00
Adil El Farissi
ea7417dff6
Update OSSL_Stub.cs
2024-02-21 04:26:06 +00:00
Adil El Farissi
ca722ecdd8
Add some OSSL functions related to child prims inventory manipulations
...
Add functions:
+ osGiveLinkInventory(integer linkNumber, key destination, string inventory)
Give an item located in a child prim inventory.
+ osGetInventoryNames(integer type)
Return a list of items names by type (or INVENTORY_ALL) located in the prim inventory.
+ osGetLinkInventoryNames(integer linkNumber, integer type)
Return a list of items names by type (or INVENTORY_ALL) located in a child prim inventory.
+ osGetInventoryKeys(integer type)
Return a list of the items UUIDs by type (or INVENTORY_ALL) located in the prim inventory.
+ osGetLinkInventoryKeys(integer linkNumber, integer type)
Return a list of the items UUIDs by type (or INVENTORY_ALL) located in a child prim inventory.
+ osGetLinkInventoryKey(integer linkNumber, string name)
Return the UUID of the specified item name located in a child prim inventory.
+ osGetLinkInventoryDesc(integer linkNumber, string itemNameorid)
Return the description of an item located in a child prim inventory.
+ osGetLinkInventoryName(integer linkNumber, key itemId)
Return the name of an item located in a child prim inventory.
Note: the LinkInventory functions don't have access to the root prim contents. This may change if requested by the community...
2024-02-20 17:36:33 +00:00
UbitUmarov
cf27093ee9
several changes to llIsFriend and related methods
2024-02-16 20:14:06 +00:00
UbitUmarov
4e2bea288a
add llIsFriend
2024-02-16 17:17:59 +00:00
UbitUmarov
2e26b8a8bb
add LinksetData support. Untested and still does not store in dbs. Not as spec. See mantis 9081 (runprebuild)
2024-02-06 23:45:11 +00:00
UbitUmarov
f1cba63aad
retire StringToBytes variants with string format. Do the format before calling..
2024-02-05 18:34:44 +00:00
UbitUmarov
79ac5c7f54
remove some obsolete code
2023-11-29 12:17:08 +00:00
UbitUmarov
bbe6075aa0
add lsl constant PRIM_SCULPT_FLAG_ANIMESH and change a few things about it
2023-08-08 18:45:49 +01:00
Vincent Sylvester
dba340a447
Minor fixes
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt >
2023-08-01 18:57:39 +01:00
UbitUmarov
d5e49f29da
cosmetics
2023-07-25 19:56:55 +01:00
UbitUmarov
5ab9278583
add a few lsl constants for llLinkPlaySound
2023-07-18 20:28:56 +01:00
UbitUmarov
2849e57920
add osGetPrimCount([key primKey]) and osGetSittingAvatarsCount([key primkey]) that just do want name says unlike ll mess, absent primKey argument means current linkset
2023-06-14 22:45:37 +01:00
UbitUmarov
2625eed5e4
add some constants and reserve some linkset_data lsl event slots, compatible to mantis9081 patch, for now not accepted (any future implementation may diverge from that, even sl
2023-06-02 18:30:28 +01:00
UbitUmarov
52bd6a443e
make llLinkPlaySound() closer to spec
2023-05-31 19:27:43 +01:00
Jeff Kelley
b96ef0d00c
osSetPenColor
...
osSetPenColor1
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt >
2023-05-05 10:45:02 +01:00
UbitUmarov
35962d8c39
add llListFindStrided; llListFindList change to be more as spec
2023-04-29 11:06:35 +01:00
UbitUmarov
7dbedecd88
add LSL llLinear2sRGB and llsRGB2Linear
2023-04-28 01:55:35 +01:00
UbitUmarov
549ebc1025
add old llList2ListStrided renamed osOldList2ListStrided to easy any possible script fixes
2023-04-27 22:15:19 +01:00
UbitUmarov
02fd3b86fa
missing file and take a debug message out
2023-04-27 21:58:21 +01:00
UbitUmarov
4c061a0602
add llListSortStrided and osListSortInPlaceStrided
2023-04-26 20:26:01 +01:00
UbitUmarov
33bdf572c6
fix several PARCEL_DETAILS_* constants for getparceldetails, add PARCEL_DETAILS_GEOMETRICCENTER; Stop script on unknown parameter, instead of keep running with a wrong integer 0 result
2023-04-18 17:54:24 +01:00
UbitUmarov
93e06f87f6
add list osGetParcelIDs() and key osGetParcelID(), plus a few changes to previus commits
2023-04-16 20:00:35 +01:00
UbitUmarov
9c2aa87acf
cosmetics
2023-03-01 21:08:35 +00:00
UbitUmarov
49eabf2c0c
missing file
2023-02-28 10:06:14 +00:00
UbitUmarov
c3db66a3f9
add LSL:key.NullKey, plus cosmetics
2023-02-10 16:18:37 +00:00
UbitUmarov
71ae7655e5
llSetStatus is suposed to accept a mask to set several things true or false on one call
2023-02-09 20:18:55 +00:00
UbitUmarov
16b6bbd253
a few changes fo yengine exec time check points on function calls
2023-02-09 12:11:18 +00:00
UbitUmarov
45beb824af
add llLinkSetSoundQueueing and llLinkSetSoundRadius
2023-02-09 10:59:24 +00:00
UbitUmarov
44b4fe523b
add llLinkAdjustSoundVolume, llLinkPlaySound and llLinkStopSound
2023-02-06 18:55:06 +00:00
UbitUmarov
5ac93aaf2f
update api version and script syntax
2023-01-31 17:17:33 +00:00
UbitUmarov
6a2d9e8ec3
mantis 9056: add llReplaceSubString()
2023-01-31 17:16:33 +00:00
Jeff Kelley
1e3cbd42ba
add llGetInventoryAcquireTime
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt >
2023-01-26 14:48:01 +00:00
UbitUmarov
d9380c9b83
clean some spurius chars and a few other things. Thanks Vincent Sylvester
2022-11-12 02:49:01 +00:00
UbitUmarov
fd6edf81d9
remove some xengine code; remove OSSLPrim, whatever that was
2022-11-01 01:23:04 +00:00
UbitUmarov
a28c875ce4
add llSHA256String() same as osSHA256
2022-10-22 14:10:07 +01:00
UbitUmarov
0d35531200
add llObjectGetLinkKey(...)
2022-10-22 12:13:44 +01:00
UbitUmarov
6ff8ecaae0
appdomains are gone. XEngine does not make much sense without them
2022-10-02 11:38:50 +01:00
UbitUmarov
d545506efc
add a few more parameters to llGetObjectDetails(); add intger log2(uint)
2022-08-23 17:27:02 +01:00
lickx
7809eb5ba0
Support PRIM_PROJECTOR
...
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt >
2022-05-22 15:13:47 +01:00
UbitUmarov
e78caeeac8
add explicit osMakeNotecard(string notecardName, LSL_String contents) so it does not depend on implicit cast from string to list, as before
2022-01-06 20:42:50 +00:00
UbitUmarov
0a447d1a9c
slowdown osMessageObject a bit. Also slowdown osMessageAttachments by (200 + 10 *NumberTargetedPrims) miliseconds, plus some implementation changes
2022-01-01 18:06:19 +00:00
UbitUmarov
3423e53043
fix osRequest*URL return type and threat level name
2021-10-18 20:42:28 +01:00
UbitUmarov
68efbfc603
add llOrd, llChar llHash
2021-10-02 14:17:11 +01:00
UbitUmarov
af4dacee53
a few typos
2021-09-01 16:37:28 +01:00
UbitUmarov
6d47ec571a
add another stat
2021-07-23 03:04:59 +01:00
UbitUmarov
96cb47e80f
anf ofc i forgot a file
2021-05-31 18:13:56 +01:00
UbitUmarov
294ca5db2c
add STATS_SCRIPT_TIME constant. On last commit add ..LPS wasa typo, it was add STATS_SIM_SLEEP, the index to value LPS was pointing till now
2021-05-04 21:02:29 +01:00
UbitUmarov
87b806bd20
fix STATS_SCRIPT_LPS (obsolete), add STATS_SCRIPT_LPS ( what LPS did actually return) and STATS_SCRIPT_EPS to the list of some indexes to the list returned by osGetRegionStats
2021-05-04 20:43:24 +01:00
UbitUmarov
15d0b02ba9
add LSL_Integer osAvatarType(string firts, string last)
2021-04-21 16:25:58 +01:00