Simple Email Hex Encoding

Nov 18
2008
#!/usr/bin/python
 
import re
 
hex_encode = lambda x: ("&#%i;" * len(x)) % (tuple(map(ord, re.findall('.', x))))
 
# hex_encode("root@example.com") =>;
# root@vidul.com

Comments are closed.

Calendar

November 2008
M T W T F S S
« Oct   Dec »
 12
3456789
10111213141516
17181920212223
24252627282930

Tags