]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2004/004171.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2004 / 004171.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Perl Script for Encrypting Passwords..
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Perl%20Script%20for%20Encrypting%20Passwords..&In-Reply-To=200403271239.i2RCdoIk023362%40mac.com">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="004170.html">
11 <LINK REL="Next" HREF="004172.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Perl Script for Encrypting Passwords..</H1>
15 <B>Trevor Talbot</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Perl%20Script%20for%20Encrypting%20Passwords..&In-Reply-To=200403271239.i2RCdoIk023362%40mac.com"
17 TITLE="[IRCServices] Perl Script for Encrypting Passwords..">quension at mac.com
18 </A><BR>
19 <I>Sat Mar 27 14:17:40 PST 2004</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="004170.html">[IRCServices] Translate
22 </A></li>
23 <LI>Next message: <A HREF="004172.html">[IRCServices] Translate
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#4171">[ date ]</a>
27 <a href="thread.html#4171">[ thread ]</a>
28 <a href="subject.html#4171">[ subject ]</a>
29 <a href="author.html#4171">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>-----
35 From: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org</A> (Andrew Church)
36 Date: Wed Sep 17, 2003 07:27:17 US/Pacific
37 To: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at ircservices.za.net</A>
38 Subject: Re: [IRCServices] Database encryption
39
40 This isn't possible at the moment. I'm hoping to make it possible
41 for 5.1. In the meantime, you can export to XML and encrypt the
42 passwords manually. Something like the following Perl snippet
43 (pseudocode) should do it:
44
45 undef $/;
46 $data = &lt;XML&gt;;
47 s,&lt;pass&gt;([\0-\377]*?)&lt;/pass&gt;,&quot;&lt;pass&gt;&quot;.&amp;escape(&amp;md5($1)).&quot;&lt;/pass&gt;&quot;,eg;
48 print NEWXML $data;
49
50 where &amp;md5 is a subroutine that returns the MD5 hash of its parameter
51 (raw binary, not hex string), and &amp;escape turns non-ASCII characters
52 into &amp;#nnn; entities.
53
54 --Andrew Church
55 <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">achurch at achurch.org</A>
56 <A HREF="http://achurch.org/">http://achurch.org/</A>
57
58 &gt;<i> Hello all,
59 </I>&gt;<i> I have a simple question that I can't seem to find the answer to. How
60 </I>&gt;<i> can I convert the my services database to use MD5? Just enabling
61 </I>&gt;<i> encryption/md 5 breaks it. :/
62 </I>&gt;<i> Jeian/John
63 </I>-----
64
65
66
67 </PRE>
68
69 <!--endarticle-->
70 <HR>
71 <P><UL>
72 <!--threads-->
73 <LI>Previous message: <A HREF="004170.html">[IRCServices] Translate
74 </A></li>
75 <LI>Next message: <A HREF="004172.html">[IRCServices] Translate
76 </A></li>
77 <LI> <B>Messages sorted by:</B>
78 <a href="date.html#4171">[ date ]</a>
79 <a href="thread.html#4171">[ thread ]</a>
80 <a href="subject.html#4171">[ subject ]</a>
81 <a href="author.html#4171">[ author ]</a>
82 </LI>
83 </UL>
84
85 </body></html>