import_code("/root/CryptLib") if params.len != 1 or params[0] == "-h" or params[0] == "--help" then exit(command_info("passwd_usage")) inputMsg = "Changing password for user " + params[0] +".\nNew password:" inputPass = user_input(inputMsg, true) output = get_shell.host_computer.change_password(params[0], inputPass) if output == true then encrypt=function(pass,secret,type) cryptChars=function(pass) if typeof(pass) == "string" then newList=[] for chr in pass newList.push(bitwise("^",chr.code,key)) end for return newList.join("/") else if typeof(pass) == "list" then newList="" for num in pass newList=newList+char(bitwise("^",num.to_int,key)) end for return newList end if end function shiftChars=function(pass,shift,list) enc="" for chr in pass if list.indexOf(chr) == null then continue newChar=shift[list.indexOf(chr)] enc=enc+newChar end for return enc end function allowedChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789/_.@=!#$%^&*()-+|?<>" shiftedChars="Cy|=a+!@z^M7rmg*BUh(Ne-5tV8dTq?$u4vo1>kWxJpARLcKSb320%EQH6