当前位置:网站首页>对ogg用户进行加密
对ogg用户进行加密
2022-07-17 08:46:00 【文档搬运工】
-- 使用默认生成key的方法
encrypt password oracle,ENCRYPTKEY default ## 在ggsci命令行上生成加密后的密码
GGSCI (redhat762100 as [email protected]) 3> encrypt password oracle,ENCRYPTKEY default
Using Blowfish encryption with DEFAULT key.
Encrypted password: AACAAAAAAAAAAAGAIFAAUDVHCFUGFIYF
Algorithm used: BLOWFISH
GGSCI (redhat762100 as [email protected]) 4>
dblogin userid ogg,password AACAAAAAAAAAAAGAIFAAUDVHCFUGFIYF,ENCRYPTKEY default ## 使用加密后的密码,在GGSCI命令行上登录数据库
GGSCI (redhat762100) 5> dblogin userid ogg,password AACAAAAAAAAAAAGAIFAAUDVHCFUGFIYF,ENCRYPTKEY default
Successfully logged into database.
GGSCI (redhat762100 as [email protected]) 6>
userid ogg,password AACAAAAAAAAAAAGAIFAAUDVHCFUGFIYF,ENCRYPTKEY default ## 在进程的参数文件中,添加这些内容,替换掉userid ogg,password oracle -- 使用key的方法进行加密
### 256位加密
cd /u01/ogg19c
./keygen 256 1 -- 256位加密,生成1个密码 成功,注意,要在登陆的时候,指定加密方式AES256
[[email protected] ogg19c]$ ./keygen 256 1
0x608EB330DCDD3E6197500E707D70467C4BBCBE2A11780A2F3C78DE4F0BD2ED05
[[email protected] ogg19c]$编辑ENCKEYS文件,将上面生成的加密key填入,方式如下:
vi ENCKEYS
## KEY NAME KEY VALUE
ogg_key 0x608EB330DCDD3E6197500E707D70467C4BBCBE2A11780A2F3C78DE4F0BD2ED05
ENCRYPT PASSWORD oracle AES256 ENCRYPTKEY ogg_key ## 在GGSCI命令行上生成加密的密码,指定加密方式是AES256
GGSCI (redhat762100) 1> ENCRYPT PASSWORD oracle AES256 ENCRYPTKEY ogg_key
Encrypted password: AADAAAAAAAAAAAGABDCEKCYIGFOAIFJAAJQBHCBHBAREKCGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Algorithm used: AES256
GGSCI (redhat762100) 2>使用生成的加密后的密码登录,指定加密方式为AES256 ,加密key是ogg_key ,登录成功
dblogin userid ogg,password AADAAAAAAAAAAAGABDCEKCYIGFOAIFJAAJQBHCBHBAREKCGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AES256,encryptkey ogg_key
GGSCI (redhat762100) 2> dblogin userid ogg,password AADAAAAAAAAAAAGABDCEKCYIGFOAIFJAAJQBHCBHBAREKCGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AES256,encryptkey ogg_key
Successfully logged into database.
GGSCI (redhat762100 as [email protected]) 3>-- 在测试的过程中,使用了AES156加密,但是在登录的时候,没有指定AES256,导致错误 ,上面的指定了AES156 ,登录成功,不指定,默认是AES128加密方式
GGSCI (redhat762100) 2> dblogin userid ogg,password AADAAAAAAAAAAAGABDCEKCYIGFOAIFJAAJQBHCBHBAREKCGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA,encryptkey ogg_key
ERROR: Error (-12) Error (-11) retrieving key for OGG_KEY in file ENCKEYS: The length of the key specified in KEYNAME does not match the encryption method. AES256
#### 128位加密
./keygen 128 1 -- 128位加密,缺省是128位,生成1个密码
[[email protected] ogg19c]$ ./keygen 128 1 ## 生成128位的加密key
0x174C852123CCC100699D4A4BB0703412
[[email protected] ogg19c]$
将生成的密码写在ENCKEYS文件中,格式如下
[[email protected] ogg19c]$ cat ENCKEYS
ogg_key 0x174C852123CCC100699D4A4BB0703412
[[email protected] ogg19c]$
在GGSCI上生成加密的密码,没有指定加密方式,使用默认的128位
ENCRYPT PASSWORD oracle ENCRYPTKEY ogg_key
GGSCI (redhat762100) 1> ENCRYPT PASSWORD oracle ENCRYPTKEY ogg_key
Encrypted password: AADAAAAAAAAAAAGAZIUEICADYHPHXIMHBEDHNIXGTFMFZHAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Algorithm used: AES128
GGSCI (redhat762100) 2>登录测试 ,登录成功
dblogin userid ogg,password AADAAAAAAAAAAAGAZIUEICADYHPHXIMHBEDHNIXGTFMFZHAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,encryptkey ogg_key
GGSCI (redhat762100) 4> dblogin userid ogg,password AADAAAAAAAAAAAGAZIUEICADYHPHXIMHBEDHNIXGTFMFZHAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,encryptkey ogg_key
Successfully logged into database.
GGSCI (redhat762100 as [email protected]) 5>后面的tail文件,tcpip加密,有时间再测试 。
END
边栏推荐
猜你喜欢

rosbridge

【回归预测】基于粒子滤波实现锂离子电池寿命预测附matlab代码

Stm32subeide (9) -- USART sends and receives via DMA

Snap 1669 combine deux notes de liste
![[regression prediction] lithium ion battery life prediction based on particle filter with matlab code](/img/1d/5562934499edfb4781b1118d0c4f9c.png)
[regression prediction] lithium ion battery life prediction based on particle filter with matlab code

SQL优化

【无标题】

【C语言-自定义类型】还能这样整?

【虹科】激光雷达安全系统:让世界更安全

Xgen hair guide history cleared solution
随机推荐
LeetCode 0116. Populate the next right node pointer for each node
The latest generation of Internet: Web 3.0
How to set preferences when developing esp8266 and esp32 with Arduino
Collation of exercises of shallow neural networks in the third week of in-depth study
WPF 3D application building (Foundation)
Event loop, macro task, micro task
Build an embedded development environment
[regression prediction] lithium ion battery life prediction based on particle filter with matlab code
Exchange array elements without creating temporary variables
小说里的编程 【连载之十二】元宇宙里月亮弯弯
小说里的编程 【连载之十五】元宇宙里月亮弯弯
树状数组
Expanding hard disk in VMWare
ARM计算新应用,违规垂钓“一网打尽”
动态内存管理
PHP store password
项目代码训练教程
MySQL读写分离
Matlab imports floating-point numbers with more than 9 digits after the decimal point
TP5 wechat withdrawal merchants transfer to change (copying is available)