Difference between revisions of "LlXorBase64StringsCorrect"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|deprecated=llXorBase64
|deprecated=llXorBase64
|inject-2={{Issues/SVC-289}}{{Issues/SCR-35}}
|inject-2={{Issues/SVC-289}}{{Issues/SCR-35|fc=*}}
|func_id=319|func_sleep=0.0|func_energy=10.0
|func_id=319|func_sleep=0.0|func_energy=10.0
|func=llXorBase64StringsCorrect|sort=XorBase64StringsCorrect
|func=llXorBase64StringsCorrect|sort=XorBase64StringsCorrect

Latest revision as of 22:38, 24 June 2013

Emblem-important.png Deprecated
(This function has been deprecated, please use llXorBase64 instead.)

Summary

Function: string llXorBase64StringsCorrect( string str1, string str2 );
0.0 Forced Delay
10.0 Energy

Correctly performs an exclusive or on two Base 64 strings.
Returns a string that is a Base64 XOR of str1 and str2.

• string str1 Base64 string
• string str2 Base64 string

str2 repeats if it is shorter than str1. If the inputs are not Base64 strings the result will be erratic.

Caveats

  • This function has been deprecated, please use llXorBase64 instead.
  • During the conversion to a byte array the last (bitcount % 8) are discarded from both str1 and str2. See Implementation for details.
  • Considers any null encountered in str2 to mark the end of str2.

Examples

Deep Notes

Signature

function string llXorBase64StringsCorrect( string str1, string str2 );