GithubHelp home page GithubHelp logo

gerry5 / txt2htxt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wwek/txt2htxt

0.0 1.0 0.0 40 KB

txt2Htxt把文本内容进行哈希加密,用于在朋友圈、今日头条等的广告投放中加密电话号等铭感信息🔐㊙

License: MIT License

Go 100.00%

txt2htxt's Introduction

txt2Htxt

Build Status

txt2Htxt把文本内容进行哈希加密,用于在朋友圈、今日头条等的广告投放中加密电话号等铭感信息🔐㊙

遇到和解决的问题

在朋友圈、今日头条等广告投放平台推广的时候 可以通过上传"人群数据",例如QQ号码,手机号码、IDFA、IMEI等进行用户人群识别从而实现精准投放 为了数据安全(不想让推广人员拿到原始的数据,虽然哈希作用不是那么大,但是也比不做的好),一般会对数据进行各种哈希加密 常见的哈希算法有MD5、SHA1、SHA256等 本工具就是把给定的一个文本文件,把文本文件中的内容按照指定的哈希算法进行“加密”转换

例如: 文件tels.txt 中原始信息为

13888888888
17699999999

通过 SHA256 进行“加密”转换后文件为tels_sha256.txt 结果信息为

6811fc76f7cd9e19b64d0c7116df16ee82606c8647a83e4fff20b7578081843e
b13851cdc20c38167ece5194488bb7c24b0f23b7d0fdf201d41e7afd4078edc5

实际应用场景

朋友圈广告 DMP 投放 新建人群管理,这里推广人员需要传"人群数据",那么BI、DBA、开发人员等使用txt2Htxt把"加密"后得到的手机号码-MD5、IDFA-MD5、IMEI-MD5提供 推广人员即可 img

快速安装使用

Windows为例

txt2Htxt-v0.1-windows-amd64.exe -t sha256 tels.txt tels1.txt
# 转换成功:tels_sha256.txt
# 转换成功:tels1_sha256.txt

编译安装(开发者)

确保Golang版本≥1.11.1

# windows系统 
# set GO111MODULE=on

# 类Unix系统
# GO111MODULE=on

go run main.go -t sha256 tels.txt tels1.txt

# 转换成功:tels_sha256.txt
# 转换成功:tels1_sha256.txt

txt2htxt's People

Contributors

wwek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.