<p>I'm looking for one line code examples in various languages for getting a valid MD5 result (as a string, not a bytehash or what have you).  For instance:</p>

<p>PHP:
$token = md5($var1 . $var2);</p>

<p>I found VB especially troublesome to do in one line.</p>

Python
```
```
token = __import__('md5').new(var1 + var2).hexdigest()
```
```
or, if
```
md5
```
is alrady imported:
```
```
token = md5.new(var1 + var2).hexdigest()
```
```
Thanks to Greg Hewgill