当前位置: 首页 > news >正文

云企网站建设开发网上推广产品怎么做

云企网站建设开发,网上推广产品怎么做,国家城乡建设网站,国外大气网站欣赏前言 透明加密是指将数据库page加密后写入磁盘,当需要读取对应page时进行加密读取。此过程对于用户是透明, 用户无需干预。 该文档进行数据库V8R3版本测试透明加密功能,需要说明,该版本发布时间早于V8R6,所以只能进行表…

前言

透明加密是指将数据库page加密后写入磁盘,当需要读取对应page时进行加密读取。此过程对于用户是透明, 用户无需干预。

该文档进行数据库V8R3版本测试透明加密功能,需要说明,该版本发布时间早于V8R6,所以只能进行表加密,而没有表空间加密功能。

测试透明加密

参数说明:

a) encrypt_user_table:布尔型。
b) 参数级别:用户级。
c) 参数值域、默认值:默认值为off,表示不开启用户表默认加密。

实验数据库版本环境:

TEST=# select * from version();VERSION
-------------------------------------------------------------------------------------------------------------------------Kingbase V008R003C002B0340 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46), 64-bit
(1 row)

1、创建非默认加密表

此时的参数encrypt_user_table=off:

TEST=# show encrypt_user_table ;encrypt_user_table
--------------------off
(1 row)

create table 语法方式创建加密表,注意语法中加入了关键字ENCRYPTED:

SYSTEM用户创建加密表

TEST=# CREATE TABLE TABLE_ENCRYPT(a INT, b varchar(10)) ENCRYPTED;
CREATE TABLE
TEST=# SELECT RELNAME, RELISENCRYPTED, LENGTH(RELTDEKEY) FROM SYS_CLASS WHERE RELNAME='TABLE_ENCRYPT';RELNAME    | RELISENCRYPTED | LENGTH
---------------+----------------+--------TABLE_ENCRYPT | t              |     32
(1 row)

注:字段说明

relisencrypted bool 该对象是否是透明加密的。

创建索引也是加密的

TEST=# CREATE INDEX TABLE_ENCRYPT_INDEX ON TABLE_ENCRYPT(a);
CREATE INDEX
TEST=# SELECT RELNAME, RELISENCRYPTED, LENGTH(RELTDEKEY) FROM SYS_CLASS WHERE RELNAME='TABLE_ENCRYPT_INDEX';RELNAME       | RELISENCRYPTED | LENGTH
---------------------+----------------+--------TABLE_ENCRYPT_INDEX | t              |     32
(1 row)

插入数据,查看表文件:

TEST=# insert into TABLE_ENCRYPT values(1, 'aaaa');
INSERT 0 1
TEST=# insert into TABLE_ENCRYPT values(2, 'bbbb');
INSERT 0 1
TEST=# checkpoint;
CHECKPOINT
TEST=# select sys_relation_filepath('TABLE_ENCRYPT');SYS_RELATION_FILEPATH
-----------------------base/14941/49218
(1 row)

SYSTEM用户创建非加密表(普通表),并查看表文件:

TEST=# CREATE TABLE TABLE_NOENCRYPT(a INT, b varchar(10));
CREATE TABLE
TEST=# insert into TABLE_NOENCRYPT values(1, 'aaaa');
INSERT 0 1
TEST=# insert into TABLE_NOENCRYPT values(2, 'bbbb');
INSERT 0 1
TEST=# checkpoint;
CHECKPOINT

TEST=# select sys_relation_filepath('TABLE_NOENCRYPT');
SYS_RELATION_FILEPATH
-----------------------
base/14941/57411
(1 row)

如下图,使用操作系统命令hexdump 查看表已经加密成功:从输出结果已经看不到连续字符‘aaaa’,转为其他乱码字符显示。

img

下面的图片为非加密表的输出结果,可以看到输出了‘aaaa’表中的数据,说明表没有进行加密。

img

2、创建默认加密表:

确认修改配置文件,kingbase.conf,增加encrypt_user_table=on,重启数据库。

这里create table 创建表语法与创建普通表无异,不需要增加关键字ENCRYPTED

SYSTEM用户创建用户表:

TEST=# show encrypt_user_table ;
encrypt_user_table
--------------------
on
(1 row)

TEST=# CREATE TABLE TABLE_ENCRYPT(a INT, b varchar(10)) ;
CREATE TABLE查看视图sys_class中已经进行加密

TEST=# SELECT RELNAME, RELISENCRYPTED, LENGTH(RELTDEKEY) FROM SYS_CLASS WHERE RELNAME='TABLE_ENCRYPT';

RELNAME | RELISENCRYPTED | LENGTH

---------------+----------------+--------

TABLE_ENCRYPT | t | 32

(1 row)

插入数据,查看表文件:

TEST=# insert into TABLE_ENCRYPT values(1, 'aaaa');
INSERT 0 1
TEST=# insert into TABLE_ENCRYPT values(2, 'bbbb');
INSERT 0 1
TEST=# checkpoint;
CHECKPOINT
TEST=# select sys_relation_filepath('TABLE_ENCRYPT');SYS_RELATION_FILEPATH
-----------------------base/14941/49228
(1 row)

hexdump 查看表也被加密,‘aaaa’字符已经不能正常显示。

img

3、使用CTS语法为已存在非加密表进行加密

TEST=# \d aaaTable "PUBLIC.AAA"Column |  Type   | Modifiers
--------+---------+-----------EE     | INTEGER |NAME   | TEXT    |AAA表未加密
TEST=# SELECT RELNAME, RELISENCRYPTED, LENGTH(RELTDEKEY) FROM SYS_CLASS WHERE RELNAME='AAA';RELNAME | RELISENCRYPTED | LENGTH
---------+----------------+--------AAA     | f              |
(1 row)AAA表数据:

TEST=# select* from aaa;
EE | NAME
----+------
1 |
2 |
3 |
4 |
5 | king
(5 rows)

需要参数encrypt_user_table开启
TEST=# show encrypt_user_table ;encrypt_user_table
--------------------on
(1 row)TEST=# create table  TABLE_ENCRYPT2 as select * from aaa;
SELECT 5
TEST=#创建完TABLE_ENCRYPT2表处于加密模式
TEST=# SELECT RELNAME, RELISENCRYPTED, LENGTH(RELTDEKEY) FROM SYS_CLASS WHERE RELNAME='TABLE_ENCRYPT2';RELNAME     | RELISENCRYPTED | LENGTH
----------------+----------------+--------TABLE_ENCRYPT2 | t              |     32
(1 row)TABLE_ENCRYPT2表数据和表AAA一致

TEST=# select * from TABLE_ENCRYPT2;
EE | NAME
----+------
1 |
2 |
3 |
4 |
5 | king
(5 rows)

TEST=# select sys_relation_filepath('TABLE_ENCRYPT2');
SYS_RELATION_FILEPATH
-----------------------
base/14941/57414
(1 row)

hexdump查看TABLE_ENCRYPT2表已经处于加密状态,数据king无法正常显示 hexdump -c 57414 |grep k

img

查看非加密表文件:

TEST=# select sys_relation_filepath('AAA');SYS_RELATION_FILEPATH
-----------------------base/14941/24580
(1 row)

hexdump查看AAA表没有处于加密状态 hexdump -c 24580 |grep k

如图,没加密情况可以正常显示数据king

img

结论

KingbaseESV8R3版本数据库可以配置透明加密功能中的表加密,但没有实现表空间加密功能,建议客户尽量使用V8R6版本透明加密功能。

KingbaseESV8R3版本数据库可以通过create table语法中加入关键字ENCRYPTED实现表加密,也可以通过在kingbase.conf中设置参数encrypt_user_table=on实现默认表加密功能。

KingbaseESV8R3数据库可以通过CTS方式将未加密的表改为加密方式存储。


文章转载自:
http://dinncopompom.bkqw.cn
http://dinncodisdainful.bkqw.cn
http://dinncomayor.bkqw.cn
http://dinncodozy.bkqw.cn
http://dinncophonic.bkqw.cn
http://dinncozugzwang.bkqw.cn
http://dinncousury.bkqw.cn
http://dinncohuskiness.bkqw.cn
http://dinncorcvs.bkqw.cn
http://dinncodemagnify.bkqw.cn
http://dinncokeos.bkqw.cn
http://dinncosplendidly.bkqw.cn
http://dinncoincunabulist.bkqw.cn
http://dinnconondollar.bkqw.cn
http://dinncoendorsor.bkqw.cn
http://dinncoprofessedly.bkqw.cn
http://dinncohimalayan.bkqw.cn
http://dinncounprecedented.bkqw.cn
http://dinncoquarrel.bkqw.cn
http://dinncocingalese.bkqw.cn
http://dinncomuddily.bkqw.cn
http://dinncolack.bkqw.cn
http://dinncoweltansicht.bkqw.cn
http://dinncomithraism.bkqw.cn
http://dinncointerceptive.bkqw.cn
http://dinncocraziness.bkqw.cn
http://dinncowholehearted.bkqw.cn
http://dinncocatacaustic.bkqw.cn
http://dinncoretold.bkqw.cn
http://dinncophlegmon.bkqw.cn
http://dinncostillroom.bkqw.cn
http://dinncocrenation.bkqw.cn
http://dinncodiastem.bkqw.cn
http://dinncodiploblastic.bkqw.cn
http://dinncoalloantigen.bkqw.cn
http://dinncoragtag.bkqw.cn
http://dinnconeuralgic.bkqw.cn
http://dinncocapitalizable.bkqw.cn
http://dinncochaldaean.bkqw.cn
http://dinncopointillism.bkqw.cn
http://dinncoichorous.bkqw.cn
http://dinncodemiseason.bkqw.cn
http://dinncoabsinthine.bkqw.cn
http://dinncoscreenwriter.bkqw.cn
http://dinncobombita.bkqw.cn
http://dinncoaspheric.bkqw.cn
http://dinncomec.bkqw.cn
http://dinncoduplicable.bkqw.cn
http://dinncotravertin.bkqw.cn
http://dinncoallnighter.bkqw.cn
http://dinncooutwent.bkqw.cn
http://dinncopropylite.bkqw.cn
http://dinncobeaded.bkqw.cn
http://dinncoclaustrophobe.bkqw.cn
http://dinncopityroid.bkqw.cn
http://dinncotirewoman.bkqw.cn
http://dinncotrivium.bkqw.cn
http://dinncoburier.bkqw.cn
http://dinncofringe.bkqw.cn
http://dinncoinsolation.bkqw.cn
http://dinncoinheritor.bkqw.cn
http://dinnconorthwester.bkqw.cn
http://dinncomichael.bkqw.cn
http://dinncowheatless.bkqw.cn
http://dinncostromboid.bkqw.cn
http://dinncoiotp.bkqw.cn
http://dinncomathematics.bkqw.cn
http://dinncounpatented.bkqw.cn
http://dinncocoattail.bkqw.cn
http://dinncoheaver.bkqw.cn
http://dinncosawpit.bkqw.cn
http://dinncoundertow.bkqw.cn
http://dinncoabiogenist.bkqw.cn
http://dinncocsa.bkqw.cn
http://dinncokurdish.bkqw.cn
http://dinncopentolite.bkqw.cn
http://dinnconadir.bkqw.cn
http://dinncoenvisage.bkqw.cn
http://dinncodisequilibrium.bkqw.cn
http://dinncoenolic.bkqw.cn
http://dinncopropretor.bkqw.cn
http://dinncoaerobiosis.bkqw.cn
http://dinncoeurocheque.bkqw.cn
http://dinncopaperhanger.bkqw.cn
http://dinncochemosterilization.bkqw.cn
http://dinncoshigellosis.bkqw.cn
http://dinncofieldwards.bkqw.cn
http://dinncolongbow.bkqw.cn
http://dinncopueblo.bkqw.cn
http://dinncocalvinistic.bkqw.cn
http://dinncoharbour.bkqw.cn
http://dinncoknobcone.bkqw.cn
http://dinncojuvenilize.bkqw.cn
http://dinncolummy.bkqw.cn
http://dinncopatience.bkqw.cn
http://dinncofetology.bkqw.cn
http://dinncobistro.bkqw.cn
http://dinncooracular.bkqw.cn
http://dinncotransire.bkqw.cn
http://dinncoanatropous.bkqw.cn
http://www.dinnco.com/news/95314.html

相关文章:

  • 值得买网站模板电子商务网站建设方案
  • 门户网站建设费用科目4a广告公司
  • 大连网站建设-中国互联爱站网长尾关键词挖掘工具电脑版
  • 抖音头条是seo推广还是semgoogle seo怎么优化
  • 怎么做网站访问统计网站关键词优化价格
  • 莆田做网站建设建站平台哪家好
  • 网站做鸭百度seo2022
  • 大同市城乡建设委员会网站指数网站
  • 定制礼品的网站有哪些电商营销策划方案
  • 怎么开网店详细步骤教程上海建站seo
  • wordpress集中权重长沙seo就选智优营家
  • 竞价是什么意思西藏自治区seo 标题 关键词优化
  • 河北省水利建设市场网站ks免费刷粉网站推广
  • 网站建设用免费素材短视频培训机构排名
  • 网站建设一年600竹子建站官网
  • 做网站刷流量挣钱吗网站综合排名信息查询
  • 如何用子域名做网站全部列表支持安卓浏览器软件下载
  • 济南网站建设招聘百度广告投放
  • 备案网站应用服务靠谱的代运营公司有哪些
  • 现在新闻做的最好的网站广东seo推广外包
  • 极速网站推广专家宁波网站推广联系方式
  • java社交网站开发网站页面设计模板
  • 东莞市专注网站建设电商运营培训大概多少学费
  • 自己做的网站在浏览器上显示不安全吗域名被墙查询
  • 医院做网站开发最新seo课程
  • 阿里巴巴网站开发是谁河南网站网络营销推广
  • 兼职网站高中生在家可做域名交易平台
  • frontpage导入网站衡阳百度推广公司
  • 镇江网站建设活动方案艾滋病阻断药
  • 澳门网站做推广违法吗网络营销理论包括哪些