Hello i can´t found anything about the sha1 codification, if you know forums or webs where explain something about this please tell me. thank you so much
to search something in google is very easy, even for me. but is not easy when you search about hashing in navision, my post is only about hashing in navision , and there is not much information about this in google. for the next time i´ll be more careful about my posts.
Hi
A while ago I had to interact with a webservice using nav. The pw and user name had to be transmitted encoded with sha1. I used then "Encoder Wizard ActiveX 3.0" written by the Seekford company. I used the Encoder Wizard as an automation server, that worked like a charm. Please note, the software is not free, but quite affordable.
finally i have done a little c sharp aplication like this and create an automation control with it,works perfectly
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.Runtime.InteropServices;
namespace sha1Codificacion
{
public class Sha1Codificacion
{
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface INTServiciosPrb
{
string calcular(string text);
}
[ClassInterface(ClassInterfaceType.None)]
public class sha1Codificacion : INTServiciosPrb
{
public sha1Codificacion()
{
Answers
thank you =D>
A while ago I had to interact with a webservice using nav. The pw and user name had to be transmitted encoded with sha1. I used then "Encoder Wizard ActiveX 3.0" written by the Seekford company. I used the Encoder Wizard as an automation server, that worked like a charm. Please note, the software is not free, but quite affordable.
Hope this helps.
Thomas
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using System.Runtime.InteropServices;
namespace sha1Codificacion
{
public class Sha1Codificacion
{
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface INTServiciosPrb
{
string calcular(string text);
}
[ClassInterface(ClassInterfaceType.None)]
public class sha1Codificacion : INTServiciosPrb
{
public sha1Codificacion()
{
}
public string calcular(string text)
{
string TextoCodificado;
HashAlgorithm sha1 = HashAlgorithm.Create("SHA1");
Byte[] sha1Data = sha1.ComputeHash(UTF8Encoding.UTF8.GetBytes(text));
TextoCodificado = BitConverter.ToString(sha1Data).Replace("-", "");
return TextoCodificado;
}
}
}