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

网站跨省备案sz住房和城乡建设部网站

网站跨省备案,sz住房和城乡建设部网站,网络营销专业专升本,wordpress 腾讯视频debezium官网地址参考#xff1a; Debezium connector for MySQL :: Debezium Documentation 欢迎关注留言#xff0c;我是收集整理小能手#xff0c;笔芯笔芯. CDC采集数据时会有字段包含敏感字符需要做脱敏处理#xff0c;debezium提供了4种脱敏方案#xff0c;注意只…debezium官网地址参考 Debezium connector for MySQL :: Debezium Documentation 欢迎关注留言我是收集整理小能手笔芯笔芯. CDC采集数据时会有字段包含敏感字符需要做脱敏处理debezium提供了4种脱敏方案注意只有字符串类型可以进行脱敏处理数字类型不支持 1、字段黑/白名单 字段黑/白名单互斥只能选择一种配置进行使用 column.exclude.list column.include.list column.exclude.list empty string An optional, comma-separated list of regular expressions that match the fully-qualified names of columns to exclude from change event record values. Fully-qualified names for columns are of the form databaseName.tableName.columnName. column.include.list empty string An optional, comma-separated list of regular expressions that match the fully-qualified names of columns to include in change event record values. Fully-qualified names for columns are of the form databaseName.tableName.columnName. 2、字段截取 column.truncate.to._length_.chars column.truncate.to._length_.chars n/a An optional, comma-separated list of regular expressions that match the fully-qualified names of character-based columns whose values should be truncated in the change event record values if the field values are longer than the specified number of characters. You can configure multiple properties with different lengths in a single configuration. The length must be a positive integer. Fully-qualified names for columns are of the form databaseName.tableName.columnName. _length_ 为需要保留的数值长度 例如column.truncate.to.8.chars: dbname.order.address 示例中表示address字段保留8个字符 原文上海市浦东新区川沙路2301弄 脱敏上海市浦东新区川 3、字符隐藏显示* column.mask.with._length_.chars column.mask.with._length_.chars n/a An optional, comma-separated list of regular expressions that match the fully-qualified names of character-based columns whose values should be replaced in the change event message values with a field value consisting of the specified number of asterisk (*) characters. You can configure multiple properties with different lengths in a single configuration. Each length must be a positive integer or zero. Fully-qualified names for columns are of the form databaseName.tableName.columnName. _length_ 为需要显示几个*号 例如column.mask.with._length_.chars: dbname.order.address 示例中表示address字段保留8个字符 原文上海市浦东新区川沙路2301弄 脱敏******** 4、哈希计算脱敏 column.mask.hash.hashAlgorithm.with.salt.salt; column.mask.hash.v2.hashAlgorithm.with.salt.salt n/a An optional, comma-separated list of regular expressions that match the fully-qualified names of character-based columns. Fully-qualified names for columns are of the form databaseName.tableName.columnName. In the resulting change event record, the values for the specified columns are replaced with pseudonyms. A pseudonym consists of the hashed value that results from applying the specified hashAlgorithm and salt. Based on the hash function that is used, referential integrity is maintained, while column values are replaced with pseudonyms. Supported hash functions are described in the MessageDigest section of the Java Cryptography Architecture Standard Algorithm Name Documentation. In the following example, CzQMA0cB5K is a randomly selected salt. column.mask.hash.SHA-256.with.salt.CzQMA0cB5K inventory.orders.customerName, inventory.shipment.customerName If necessary, the pseudonym is automatically shortened to the length of the column. The connector configuration can include multiple properties that specify different hash algorithms and salts. Depending on the hashAlgorithm used, the salt selected, and the actual data set, the resulting data set might not be completely masked. Hashing strategy version 2 should be used to ensure fidelity if the value is being hashed in different places or systems. _length_ 为需要显示几个*号 例如 column.mask.hash.SHA-256.with.salt.CzQMA0cB5K inventory.orders.customerName column.mask.hash.v2.SHA-256.with.salt.CzQMA0cB5K inventory.orders.customerName column.mask.hash.MD5.with.salt.CzQMA0cB5K inventory.orders.customerName column.mask.hash.v2.MD5.with.salt.CzQMA0cB5K inventory.orders.customerName 示例中2种哈希算法2个版本共四种规则 哈希脱敏源码 io.debezium.relational.mapping.MaskStrings.MaskingValueConverter Immutableprotected static final class MaskingValueConverter implements ValueConverter {protected final String maskValue;public MaskingValueConverter(String maskValue) {this.maskValue maskValue;assert this.maskValue ! null;}Overridepublic Object convert(Object value) {return maskValue;}}Immutableprotected static final class HashValueConverter implements ValueConverter {private static final Logger LOGGER LoggerFactory.getLogger(HashValueConverter.class);private final byte[] salt;private final MessageDigest hashAlgorithm;private final HashingByteArrayStrategy hashingByteArrayStrategy;public HashValueConverter(byte[] salt, String hashAlgorithm, HashingByteArrayStrategy hashingByteArrayStrategy) {this.salt salt;this.hashingByteArrayStrategy hashingByteArrayStrategy;try {this.hashAlgorithm MessageDigest.getInstance(hashAlgorithm);}catch (NoSuchAlgorithmException e) {throw new IllegalArgumentException(e);}}Overridepublic Object convert(Object value) {if (value instanceof Serializable) {try {return toHash((Serializable) value);}catch (IOException e) {if (LOGGER.isErrorEnabled()) {LOGGER.error(cant calculate hash, e);}}}return null;}private String toHash(Serializable value) throws IOException {hashAlgorithm.reset();hashAlgorithm.update(salt);byte[] valueToByteArray hashingByteArrayStrategy.toByteArray(value);return convertToHexadecimalFormat(hashAlgorithm.digest(valueToByteArray));}private String convertToHexadecimalFormat(byte[] bytes) {StringBuilder hashString new StringBuilder();for (byte b : bytes) {hashString.append(String.format(%02x, b));}return hashString.toString();}}/*** V1 default and previous version. Because ObjectOutputStream is used, some characters are added before the actual value.* V2 should be used to fidelity for the value being hashed the same way in different places. The byte array also has only the actual value.**/public enum HashingByteArrayStrategy {V1 {Overridebyte[] toByteArray(Serializable value) throws IOException {ByteArrayOutputStream bos new ByteArrayOutputStream();ObjectOutput out new ObjectOutputStream(bos);out.writeObject(value);return bos.toByteArray();}},V2 {Overridebyte[] toByteArray(Serializable value) {return value.toString().getBytes();}};abstract byte[] toByteArray(Serializable value) throws IOException;}
http://www.zqtcl.cn/news/763121/

相关文章:

  • 网站开发需要哪些人才辽宁奔之流建设工程有限公司网站
  • 做旅游产品的网站有哪些个人做搜索网站违法吗
  • 营销型网站的功能网站制作价钱多少
  • angularjs 网站模板工作感悟及心得
  • 福州 网站定制设计哈尔滨网站建设咨询
  • 酒吧网站模板创办网页
  • 外贸网站建设软件有哪些现在网站建设用什么语言
  • lnmp wordpress 主题不见高级seo课程
  • 成都哪家公司做网站最好杭州软件开发
  • 做网站多少宽带够wordpress编辑文章中图片
  • 无锡网站制作排名软件工程公司
  • 做网站国内好的服务器美食网站建设项目规划书
  • 三亚市住房和城乡建设厅网站江西电信网站备案
  • 联谊会总结网站建设对外宣传如何在家做电商
  • 360建站系统徐州建设银行网上银行个人网站
  • 网站域名在哪里备案石家庄站规模
  • 重庆南川网站制作公司电话工会网站群建设
  • 深圳高端建设网站忘了网站链接怎么做
  • 郑州做网站报价wordpress中文4.8
  • 网站维护费用一年多少跨境电商平台网站建设广州
  • 辽宁网站制作公司网店装修流程
  • html5可以做交互网站吗打开网站说建设中是什么问题?
  • 彩票网站开发制作需要什么wordpress 在线预览
  • 外贸平台app衡水seo排名
  • 怎样做网站表白墙东莞商城网站推广建设
  • 郑州郑州网站建设河南做网站公司哪家好爱站长尾词挖掘工具
  • dede网站地图文章变量网站qq 微信分享怎么做
  • 越南做网站网站建设以及运营方面
  • 广西建网站哪家好网站关闭与域名备案
  • 网站开发版本号婚庆网站建设策划案费用预算