DBMS_OBFUSCATION_TOOLKIT.des3getkey : DBMS_OBFUSCATION_TOOLKIT « System Packages « Oracle PL / SQL






DBMS_OBFUSCATION_TOOLKIT.des3getkey

  
SQL> CREATE OR REPLACE FUNCTION get_key (
  2     p_seed    VARCHAR2 :=    '1234567890'
  3                           || '1234567890'
  4                           || '1234567890'
  5                           || '1234567890'
  6                           || '1234567890'
  7                           || '1234567890'
  8                           || '1234567890'
  9                           || '1234567890',
 10     p_which   NUMBER := 0
 11  )
 12     RETURN VARCHAR2
 13  IS
 14     l_seed   VARCHAR2 (80);
 15     l_ret    VARCHAR2 (2000);
 16  BEGIN
 17     l_seed := RPAD (p_seed, 80);
 18     l_ret := DBMS_OBFUSCATION_TOOLKIT.des3getkey (seed_string=> l_seed,which => p_which);
 19     l_ret := RAWTOHEX (UTL_RAW.cast_to_raw (l_ret));
 20     RETURN l_ret;
 21  END;
 22  /

Function created.

SQL>

   
  








Related examples in the same category

1.DBMS_OBFUSCATION_TOOLKIT.des3encrypt
2.DBMS_OBFUSCATION_TOOLKIT.md5 and RAWTOHEX
3.DBMS_OBFUSCATION_TOOLKIT.des3decrypt
4.dbms_obfuscation_toolkit.md5
5.Demonstrate DES3 encryption