I was trying to make a new encryption functions and here it is, not sure how secure it is and I have no idea why it works $String = _Encrypt('test','123',4) ConsoleWrite('Encrypted: ' & $String & @CRLF) ConsoleWrite('wrong key: ' & _Encrypt($String,'321',4) & @CRLF) ConsoleWrite('wrong lvl: ' & _Encrypt($String,'123',3) & @CRLF) ConsoleWrite('Decrypted: ' & _Encrypt($String,'123',4) & @CRLF) Func _Encrypt($s_String,$s_Key = '1', $s_Level = 1) Local $s_E