spicysudhi
Programmer
Hi
i got below code from google search for encryption. it works only when the input string is exactly 8 characters. If any less or more, its not working.
is there anything i can do to get this working, where the input string between single character to 20 characters.
FUNCTION encrypt(input_string IN VARCHAR2) RETURN VARCHAR2 IS
key_string VARCHAR2(32) := 'A!190j2#Az19?j1@A!190j2#Az19?j1@';
encrypted_string VARCHAR2(2048);
decrypted_string VARCHAR2(2048);
BEGIN
encrypted_string := null;
dbms_obfuscation_toolkit.DES3Encrypt( input_string => input_string,
key_string => key_string,
encrypted_string => encrypted_string );
RETURN encrypted_string;
END;
thanks in advance.
sudhi
i got below code from google search for encryption. it works only when the input string is exactly 8 characters. If any less or more, its not working.
is there anything i can do to get this working, where the input string between single character to 20 characters.
FUNCTION encrypt(input_string IN VARCHAR2) RETURN VARCHAR2 IS
key_string VARCHAR2(32) := 'A!190j2#Az19?j1@A!190j2#Az19?j1@';
encrypted_string VARCHAR2(2048);
decrypted_string VARCHAR2(2048);
BEGIN
encrypted_string := null;
dbms_obfuscation_toolkit.DES3Encrypt( input_string => input_string,
key_string => key_string,
encrypted_string => encrypted_string );
RETURN encrypted_string;
END;
thanks in advance.
sudhi