mirror of
https://github.com/sasjs/core.git
synced 2026-01-03 15:40:05 +00:00
fix: avoiding use of md5() in sysfunc(). Closes #239
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
%if %mf_getattrn(&libds,NLOBS)=0 %then %do;
|
||||
data &outds;
|
||||
length hashkey $32;
|
||||
retain hashkey "%sysfunc(md5(%str(&salt)),$hex32.)";
|
||||
hashkey=md5("&salt",$hex32.);
|
||||
output;
|
||||
stop;
|
||||
run;
|
||||
@@ -75,7 +75,8 @@
|
||||
%end;
|
||||
;
|
||||
length &prevkeyvar &keyvar $32;
|
||||
retain &prevkeyvar "%sysfunc(md5(%str(&salt)),$hex32.)";
|
||||
retain &prevkeyvar;
|
||||
if _n_=1 then &prevkeyvar=md5("&salt",$hex32.);
|
||||
set &libds end=&lastvar;
|
||||
/* hash should include previous row */
|
||||
&keyvar=%mp_md5(
|
||||
|
||||
Reference in New Issue
Block a user