1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-11 06:24:35 +00:00

Merge pull request #240 from sasjs/allanbowe/error-the-function-md-239

fix: avoiding use of md5() in sysfunc().  Closes #239
This commit is contained in:
Allan Bowe
2022-05-12 13:35:08 +03:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -8385,7 +8385,7 @@ run;
%if %mf_getattrn(&libds,NLOBS)=0 %then %do;
data &outds;
length hashkey $32;
retain hashkey "%sysfunc(md5(%str(&salt)),$hex32.)";
hashkey=put(md5("&salt"),$hex32.);
output;
stop;
run;
@@ -8402,7 +8402,8 @@ run;
%end;
;
length &prevkeyvar &keyvar $32;
retain &prevkeyvar "%sysfunc(md5(%str(&salt)),$hex32.)";
retain &prevkeyvar;
if _n_=1 then &prevkeyvar=put(md5("&salt"),$hex32.);
set &libds end=&lastvar;
/* hash should include previous row */
&keyvar=%mp_md5(

View File

@@ -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=put(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=put(md5("&salt"),$hex32.);
set &libds end=&lastvar;
/* hash should include previous row */
&keyvar=%mp_md5(