Good day�
I am working in an application web where the user if directly connects to the bank firebird, and the bank that manage tables and screens that it has access.
This happens perfectly in delphi, and we are transforming the program into jsf, already this almost everything finished lacking only some details and between them, the using option to change its password in the bank. In delphi, he possesss a method leaves the ready password to modify in the bank, to put in java it, I tried by means of hash:
MessageDigest md = MessageDigest.getInstance("SHA-1");
md.reset();
String pass = new String(md.digest(senha.getBytes("ISO-8859-1")));
However, it generates in a well different standard of what he is shown in the table of users of security.fdb of firebird.
In firebird the password in the table users is: WKyUccLcqgU
with digest it generates something thus:
md.digest(senha.getBytes("ISO-8859-1")) = [B@40a
To modify the password, I connect myself directly to security.fdb, and execute one sql similar to this:
[code]
UPDATE USERS SET PASSWD = '"+password+"' WHERE USER_NAME= '"+ user
Exists another way?
Somebody knows as to generate the password in this standard of firebird? Somebody already made something similar?
Thanks a lot!