lianjiatech / d18n Goto Github PK
View Code? Open in Web Editor NEWd18n is a data desensitization tool for RDBMS.
License: Apache License 2.0
d18n is a data desensitization tool for RDBMS.
License: Apache License 2.0
d18n % make release
Go version check ...
go version go1.16.6 darwin/arm64
Run gofmt on all source files ...
gofmt -l -s -w ...
Building ...
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter.go:393:7: undefined: sql.NullByte
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter.go:405:7: undefined: sql.NullInt16
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter.go:465:8: undefined: sql.NullByte
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter.go:482:8: undefined: sql.NullInt16
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter_decode_array.go:32:9: undefined: sql.NullInt16
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter_decode_array.go:45:10: undefined: sql.NullInt16
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter_decode_array.go:378:9: undefined: sql.NullByte
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter_decode_array.go:391:10: undefined: sql.NullByte
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter_encode_array.go:76:81: undefined: sql.NullByte
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter_encode_array.go:93:82: undefined: sql.NullInt16
../../go/pkg/mod/github.com/sijms/go-ora/[email protected]/parameter_decode_array.go:391:10: too many errors
note: module requires Go 1.17
make: *** [build] Error 2
请问,是否支持JSON格式的数据脱敏。比如data
{"Userinfo": {"Firstname":x, "Lastname": y, "Password": *} }
命令:
# ./d18n --host 10.37.129.4 --port 3306 --user root --password root123 --database testdb --schema=users_sensitive_new_ddl.sql --file users_sensitive_query.csv --import --disable-foreign-key-checks --complete-insert --verbose
line: 2, error: columns count mismatch
users_sensitive_new_ddl.sql :
# SHOW CREATE TABLE `users_sensitive`
CREATE TABLE `users_sensitive` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`ssxm` varchar(200) DEFAULT NULL,
`age` int(11) DEFAULT NULL,
`mobible` varchar(100) DEFAULT NULL,
`card_no` varchar(200) DEFAULT NULL,
`address` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
users_sensitive_query.csv
id,mobible,card_no
1,157*****552,370802********4516
大佬,你好,我是@abbykimi,我IDE运行您这个项目的时候,提示有几个漏洞,项目调用了github.com/dgrijalva/jwt-go等457个开源组件,存在14个安全漏洞,建议你升级下。
漏洞标题:jwt-go 安全漏洞
漏洞编号:CVE-2020-26160
漏洞描述:
jwt-go是个人开发者的一个Go语言的JWT实现。
jwt-go 4.0.0-preview1之前版本存在安全漏洞。攻击者可利用该漏洞在使用[]string{} for m[\"aud\"](规范允许)的情况下绕过预期的访问限制。
影响范围:(∞, 4.0.0-preview1)
最小修复版本:4.0.0-preview1
引入路径:
github.com/LianjiaTech/d18n@->github.com/pingcap/[email protected]>go.etcd.io/[email protected]>github.com/dgrijalva/[email protected]+incompatible
另外13个漏洞,如需查看详细报告、复测或持续监测您的项目,戳这里https://www.mfsec.cn/jr?p=m5a8ab
如果你对这个issues有任何疑问可以回复我哈( @abbykimi ),我会及时回复你的。
如题
能支持日期随机生成吗?比如生日,给个100年以内的date,Birthday生成的‘NNNN-NN-NN’对于日期类型无法识别
Google translate
Can you support random dates? For example, birthdays, given a date within 100 years, the "NNNN-NN-NN" generated by the birth cannot be recognized for a certain date type
如题,请问怎么和Java配合使用呢。有暴露的接口嘛。还是只有命令行
能否支持图形化的配置页面,及扫描脱敏hive库么?感谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.