If you have ever tried to set a password for a user in AD or ADAM with LDIFDE you know you have to convert the password to unicode, enclose with quotes, then Base64 encode it. What a pain huh?
Check out this cool tool to do it… StringConverter
F:\> stringconverter.exe \”NewPassword1\” /encode /unicode
IgBOAGUAdwBQAGEAcwBzAHcAbwByAGQAMQAiAA==