[mapserver-users] msencrypt - tea algorithmos

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue Jan 3 13:29:30 EST 2012


On 12-01-03 2:07 PM, Andreas Douvalis wrote:
> Hi
> I try to implement one php script to produce encrypted string for maps
> connections strings like msencrypt tool creates.
> In my MS_ENCRYPTION_KEY I have the 32 chars key created by msencrypt.exe
> (ms4w-mapserver 6).
> TEA algorithm needs one 16-chars password to encrypt the string. How
> msencrypt works? How produce the 16-chars password from 32-chars key?
> Has anybody implemented successfully php code (or other language) for
> the production of the encoded string that msencrypt tool creates?
> I found in this page (http://www.movable-type.co.uk/scripts/tea.html)
> one javascript implementation of xtea encryption but firstly it takes
> 16-chars password and secondly is xtea.
> Can I use MCRYPT_XTEA module of php to produce the encoded string that
> msencrypt tool creates?
> Please Help!!!

You might review Daniel's notes during implementation:

- RFC: http://www.mapserver.org/development/rfc/ms-rfc-18.html
- ticket: http://trac.osgeo.org/mapserver/ticket/1792

I think the ticket mentions the lines of code changed, so you could 
review the specific changes.

-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




More information about the mapserver-users mailing list