sprig
sprig copied to clipboard
derivePassword requires counter as uint32
Hi, I am trying to use derivePassword in loop but unfortunately counter is defined uint32 so it is hard (I didn't find any way to do it from HELM) to use it. Thanks N.B. The algorithm of this function moved to here
I have not had time to look into this. Do you have a suggested change and reason for it?
@mattfarina As I wrote, the reason is making it useful inside HELM loop (range). About the change itself, I cannot suggest it since I don't know golang good enough. I am sure that derivePassword signture should be changed to int32. But I am less sure what other should be change.
+1. the only way to use this function is to hardcode the counter, which is a curious restriction if intentional.
Sorry for reviving an old bug/thread but this is still an issue for those of us who would like to use atoi on strings as IDs for derrivePassword. Perhaps a type converstion function from int/int64 to uint32 would be sufficient?
We still need it...