Created
November 10, 2022 20:39
-
-
Save kangarie/ec756ad15a4e2f323e3bd4b585951516 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
:local seed ([/certificate scep-server otp generate minutes-valid=0 as-value]->"password") | |
:local angka 0 | |
:local char | |
:for i from=1 to=([:len $seed]-1) do={ | |
:set char [:tonum [:pick $seed $i]] | |
:if ( $char > 0 ) do= { | |
:set angka [:tonum (($angka + $char)*2) ] | |
} | |
} | |
:put $angka | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment