ENCRYPTION

key_gen

This function return encrypted key with user-defined normal key string for encrypt other data.

							 select h.key_gen('www.hadfamily.com') from  dual
--------------------------------------------------
89TBCWEFZ3GTADWD9Z76TABWD9Z7FTAEWDKZ8BT6JWDBZ7HTAI

encrypt

This function return encrypted data of user defined data using encrypted key.

							 select h.encrypt('abcdefg1234567%%%%%zzzz','89TBCWEFZ3GTADWD9Z76TABWD9Z7FTAEWDKZ8BT6JWDBZ7HTAI') from  dual
---------------------------------------------------------------------------------------
EATHEWKIZA4TGIWJFZDDTDCWGBZB2TDIWH9ZBHTAAWFGZA6TD7WGKZAETJ6WHGZF4THG

decrypt

This function return decrypted data of user defined encrypted data using encrypted key.

							 select h.decrypt('EATHEWKIZA4TGIWJFZDDTDCWGBZB2TDIWH9ZBHTAAWFGZA6TD7WGKZAETJ6WHGZF4THG','89TBCWEFZ3GTADWD9Z76TABWD9Z7FTAEWDKZ8BT6JWDBZ7HTAI') from  dual
---------------------------------------------------------------------------------------
abcdefg1234567%%%%%zzzz

Example

If you defined function with wrong encrypted key then you can get weird data.

							 select h.decrypt('EATHEWKIZA4TGIWJFZDDTDCWGBZB2TDIWH9ZBHTAAWFGZA6TD7WGKZAETJ6WHGZF4THG','WrongKey') from  dual
---------------------------------------------------------------------------------------
@.4XI