ABAP文件加密解密-PGP

1、SM69创建命令

ABAP文件加密解密-PGP

2、解密

DATA: lv_para = '--passphrase (key) -o /oracle/sfdata/sfdata.csv -d /oracle/sfdata/sfdata.csv.pgp'.

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZPGP_DECRYPT'
additional_parameters = lv_para.

3、加密

DATA: lv_para = '-o  /oracle/sfdata/sfdata.csv.pgp'.

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZPGP_ENCRYPT'
additional_parameters = lv_para.

4、删除文件

DATA: lv_para = '/oracle/sfdata/sfdata.csv'.

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZPGP_DELETE'
additional_parameters = lv_para.
上一篇:Android隐藏虚拟按键,关闭开机动画、开机声音


下一篇:Spring boot RSA 文件加密解密