PPPoE Secret Random Username and Password - MikroTik Script RouterOS
# PPPoE Secret Random Username and Password
# Date/Time: 2021-03-19 22:21:53
# By Heru Sasongko https://fb.me/sasongko.heru
:local prof MyPPPProfile
:local rnguser
:set rnguser [pick ([/certificate scep-server otp generate minutes-valid=1 as-value]->"password") 0 4]
:local usrname ($rnguser . "@myISPname.tld")
:local pwd
:set pwd [pick ([/certificate scep-server otp generate minutes-valid=1 as-value]->"password") 0 8]
/ppp secret \
add name=$usrname \
password=$pwd \
profile=$prof \
service=pppoe
/certificate scep-server otp remove [find used=no]
Credit: https://fb.me/sasongko.heru