Jump to content

Delphi chamada_delphi.png acbr.png

C6 chamada_c6.png botao.png

criptografia de senha


Go to solution Solved by Kiko Fernandes,

Recommended Posts

  • Membros Pro

utilizando a dll  da nfe, 

tenho 2 programas distintos,  ambos na mesma pasta , usando  o mesmo acbrlib.ini,

porem  qdo faz a criptografia da senha por um prog,  o outro , utilizando a mesma dll, a mesma lib.ini,  nao reconhece ..

pois , tenho q gerar outra senha, para poder usar..

cada hora gera uma senha diferente...

seguem os arquivos....

alguem jah passou por isso ? como resolver ?

 

ACBRLIB-118-teste2 (1).INI ACBRLIB-118-teste1.INI ACBrLibNFE-20220119-teste2.log ACBrLibNFE-20220119-teste1.log

Link to comment
Share on other sites

  • Moderadores
  • Solution

Boa tarde!

Pelo LOG após o comando LIB_Inicializar em um mostra  9.532  caracter *  e no outro mostra 4.156  caracter * 

Isto indica que você está usando uma chave diferente para cada sistema para iniciar a LIB. 

Veja a orientação da documentação do ACBrLIB

 

Comando: NFE_Inicializar([ eArqConfig, eChaveCrypt ])
eArqConfig -> Localização do arquivo INI, pode ser em branco neste caso o ACBrLib vai criar um novo arquivo INI
eChaveCrypt -> Chave de segurança para criptografar as informações confidencias, pode ser em branco neste caso será usado a senha padrão. 
Link:  https://acbr.sourceforge.io/ACBrLib/NFE_Inicializar.html 

Esta chave participa da criptografia dando segurança a todos para que ninguém tendo os fontes ou a LIB consiga obter o resultado que foi criptografado sem possuir a chave que participa desta criptografia.
Se usar vazio ai tudo bem, terá a mistura apenas da parte da LIB.  Do contrário é a tua chave mais a programação da LIB.


Portanto se deseja obter o mesmo resultado a inicialização usando a eChaveCrypt precisa ser iguais. 

 

Citar

19/01/22 11:19:35:891 - LIB_Inicializar( ACBRLIB-118.INI                                                                                                             , ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** )

 

  • Like 1


logoacbr.pngConheça o Portal do Projeto ACBr

Ajude o Projeto ACBr crescer - Assine o SAC ACBr
Assine um dos planos de longa duração do SAC ACBr, obtenha Descontos Especiais, Parcele no Cartão e ainda ganhe Brindes Exclusivos. Saiba mais aqui

Conheça o ACBrLib, o ACBr de forma nativa para qualquer linguagem de programação. Saiba mais aqui

 

 

 

 

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.